Tailwind CSS Charts - Flowbite
Use the chart and graph components from Flowbite built with Tailwind CSS and ApexCharts to choose from line, area, bar, column, pie, and radial charts and customize them using JavaScript
The chart components from the Flowbite Library are open-source under the MIT license and they are styled with the utility classes from Tailwind CSS and based on the open-source ApexCharts library.
We provide an extensive collection of responsive chart types such as area, bar, column, pie, and radial that can help you visualize complex data inside graphs in admin dashboard layouts, analytics, diagrams, and more.
You can also easily customize the colors, sizes, and options of these charts either via Tailwind CSS directly or via the JavaScript options from the ApexCharts library. Dark mode is also supported by default.
Getting started #
Before continuing make sure that you have Tailwind CSS, Flowbite and ApexCharts installed in your project.
-
Follow the quickstart guide from Flowbite to install the plugin styles and functionality
-
Make sure that you have ApexCharts installed and configured in your project:
Install ApexChart via NPM and save it in your package.json file:
- Terminal
npm install [email protected] --save
Alternatively, you can also just include the CDN link:
- charts.html
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/apexcharts.min.js"></script>
Now that you have all the libraries installed you can copy-paste the chart examples below in your code.
Area chart #
Use this example to show a basic area chart by setting the type: "area" option in JavaScript: