Charts
For the implementation of graphic charts, we used [Chart.js](http://www.chartjs.org/) in combination with [Vue Chart.js](http://vue-chartjs.org/#/home) which is a Vue wrapper for Chart.js Vue Chart.js works by extending some predefined components and customizing Chart.js options before rendering them.
Usage
To use Chart components, you directly use the provided components from Vue Chart.js
or
create your own by extending them. You can find 2 such components inside
src/components/Charts
. Feel free to adjust and customize them according to your needs 😃
Using the custom chart components
import {LineChart, BarChart} from 'src/components';
In component declaration
export default {
components: {
LineChart,
BarChart
}
}
Simple Line chart
Bar Chart with multiple datasets
Chart Card
You can combine the card
as well as other components together with the chart
component to achieve some beautiful, user-friendly
chart cards like the ones on the Overview page
TIP
Note You can also refer to other examples with chart-cards which can be found in src/pages/Dashboard/Dashboard/Overview.vue
and src/pages/Dashboard/Charts.vue
Line Chart Props
Bar Chart Props
Chart Card Props
For more chart components and options please visit Vue Chart.js and Chart.js