feat: replace charts with charts built on coreui-vue-chartjs library

This commit is contained in:
woothu
2019-04-15 15:09:35 +02:00
parent d938bd4b9b
commit 4663251573
29 changed files with 788 additions and 814 deletions
+12 -26
View File
@@ -1,57 +1,43 @@
<template>
<div class="animated fadeIn">
<CCardGroup columns class="card-columns">
<CCardGroup columns class="card-columns cols-2">
<CCard headerHtml="Line Chart" bodyWrapper>
<LineExample/>
<CChartLineExample/>
</CCard>
<CCard headerHtml="Bar Chart" bodyWrapper>
<BarExample/>
<CChartBarExample/>
</CCard>
<CCard headerHtml="Doughnut Chart" bodyWrapper>
<DoughnutExample/>
<CChartDoughnutExample/>
</CCard>
<CCard headerHtml="Radar Chart" bodyWrapper>
<RadarExample/>
<CChartRadarExample/>
</CCard>
<CCard headerHtml="Pie Chart" bodyWrapper>
<PieExample/>
<CChartPieExample/>
</CCard>
<CCard headerHtml="Polar Area Chart" bodyWrapper>
<PolarAreaExample/>
<CChartPolarAreaExample/>
</CCard>
<CCard headerHtml="Simple line chart" bodyWrapper>
<CSimpleLineChart style="height:80px" :data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]'
label='Sales' borderColor='success'/>
<CChartLineSimple borderColor="success" labels="months"/>
</CCard>
<CCard headerHtml="Simple pointed chart" bodyWrapper>
<CSimplePointedChart class='px-3' :data='[65, 59, 84, 84, 51, 55, 40]'
:labels="['January', 'February', 'March', 'April', 'May', 'June', 'July']"
style='height:80px' label='Members' pointHoverColor='warning' borderColor='warning'/>
<CChartLineSimple pointed borderColor="warning"/>
</CCard>
<CCard headerHtml="Simple bar chart" bodyWrapper>
<CSimpleBarChart style="height:80px" :data='[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]'
label='Sales' color='danger'/>
<CChartBarSimple backgroundColor="danger"/>
</CCard>
</CCardGroup>
</div>
</template>
<script>
import BarExample from './charts/BarExample'
import LineExample from './charts/LineExample'
import DoughnutExample from './charts/DoughnutExample'
import RadarExample from './charts/RadarExample'
import PieExample from './charts/PieExample'
import PolarAreaExample from './charts/PolarAreaExample'
import * as Charts from './charts/index.js'
export default {
name: 'Charts',
components: {
BarExample,
LineExample,
DoughnutExample,
RadarExample,
PieExample,
PolarAreaExample
...Charts
}
}
</script>