website/tutorials/customization/intro.mdx
This tutorial provides an introduction to customizing Lightweight Charts™ appearance and functionality. It is not meant as an exhaustive tutorial but rather as a guided tour on how and where to apply options within the API to adjust specific parts of the chart. Along the way, we will provide links to the API documentation which outline the full set of options available for each part of the chart. It is highly recommended that you explore these API links to discover the wide range of possible customization and feature flags contained within Lightweight Charts™.
Before we get started, let us have a look at what we will be building in this tutorial.
{/*
note: iframe won't display correctly when using docusaurus serve,
however it works correctly when hosted. https://github.com/facebook/docusaurus/issues/7991
*/}
The following topics will be covered within the tutorial:
The tutorial requires basic knowledge of:
:::tip
The tutorial will assume that you've already read the Getting Started section even though we may repeat a few aspects from that guide.
:::
This guide makes use of a single HTML file which you can download to your computer and run in the browser without the need for any build steps or web servers. The only thing required is an active internet connection such that the Lightweight Charts™ library can be downloaded from the CDN.
Provided below is the 'starting point' file for the guide which is a simple HTML page scaffolded out with a single div element (#container) and a JS function to generate the sample data set. At this point, you won't see anything on the page until we add the chart in the next step.
You can either:
:::tip
At the end of each section will be a link to download the example at that stage of the guide, and a full code block.
:::