TThe first thing you need to do is install the adapters for Chartisan. Adapters are a way for Chartisan to communicate between front- and back-end. The only adapter that's required for Chartisan to work is the front-end adapter. If you want to provide the data from the back-end you will need to add a back-end Adapter though. The following line of code can be used to install it. It should feel familiar according to your selected preference language. Remember, that all examples in the documentation will be shown using the selected preference languages. You can change them at the top left of the documentation page.
You can also use a CDN if you just want to try it out without any compilation steps.
Once the front-end adapter is installed you may proceed to the back-end installation or you may skip to the next chapter if you prefer to use Chartisan without a server.
If you have a server you can rely on getting the data for the chart, you may install the back-end adapter and use it to create an endpoint to fetch the data from. Remember, this step is optional but recommended. Having an endpoint dedicated to each chart will help you mitigate the front-end load. Chartisan loads the data from the back-end in the background. To install the Chartisan back-end adapter you may install it by running the following command or by adding the appropriate lines to the application dependencies.
Once the back-end adapter is installed, you may proceed with the next chapter to create your first chart using Chartisan.