FANDOM


Chart.js is a script that creates simple yet flexible charts using the canvas element. It is modified, so that it works on Fandom. The original version alongside documentation can be found here.

Chart.js is released under MIT License.

Installation

Importing multiple scripts? This quick guide shows how to combine the imports.
  • For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:Chart/code.js

Usage

Use the original Getting Started guide and the documentation.

  • Note that adding <canvas> tags throughout wikitext is disabled on Fandom. Insert the canvas using JavaScript instead.
  • Due to use of JavaScript no charts are displayed on Fandom's mobile skin – Mercury. Try to display the data as plaintext in the source and replace it with the chart on desktop.
Community content is available under CC-BY-SA unless otherwise noted.

Fandom may earn an affiliate commission on sales made from links on this page.

Stream the best stories.

Fandom may earn an affiliate commission on sales made from links on this page.

Get Disney+