feat: replace charts with charts built on coreui-vue-chartjs library
This commit is contained in:
@@ -15,13 +15,14 @@
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<CSimplePointedChart
|
||||
<CChartLineSimple
|
||||
pointed
|
||||
class="px-3"
|
||||
:data="[65, 59, 84, 84, 51, 55, 40]"
|
||||
:labels="months"
|
||||
style="height:70px"
|
||||
:dataPoints="[65, 59, 84, 84, 51, 55, 40]"
|
||||
backgroundColor="primary"
|
||||
label="Members"
|
||||
pointHoverColor="primary"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
@@ -41,14 +42,15 @@
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
<CSimplePointedChart
|
||||
<CChartLineSimple
|
||||
pointed
|
||||
class="px-3"
|
||||
:data="[1, 18, 9, 17, 34, 22, 11]"
|
||||
:labels="months"
|
||||
style="height:70px"
|
||||
label="Members"
|
||||
:dataPoints="[1, 18, 9, 17, 34, 22, 11]"
|
||||
backgroundColor="info"
|
||||
:options="{ elements: { line: { tension: 0.00001 }}}"
|
||||
pointHoverColor="info"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
@@ -72,17 +74,15 @@
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
|
||||
<CSimpleLineChart
|
||||
chartId="CWidgetDropdown_3"
|
||||
:data="[78, 81, 80, 45, 34, 12, 40]"
|
||||
:labels="months"
|
||||
style="height:70px"
|
||||
color="rgba(255,255,255,.2)"
|
||||
label="Members"
|
||||
:options="{elements: {line: {borderWidth: 2.5}}}"
|
||||
pointHoverColor="warning"
|
||||
/>
|
||||
<CChartLineSimple
|
||||
style="height:70px"
|
||||
backgroundColor="rgba(255,255,255,.2)"
|
||||
:dataPoints="[78, 81, 80, 45, 34, 12, 40]"
|
||||
:options="{ elements: { line: { borderWidth: 2.5 }}}"
|
||||
pointHoverBackgroundColor="warning"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
<CCol sm="6" lg="3">
|
||||
@@ -105,13 +105,11 @@
|
||||
<CDropdownItem disabled>Disabled action</CDropdownItem>
|
||||
</CDropdown>
|
||||
</template>
|
||||
|
||||
<CSimpleBarChart
|
||||
chartId="CWidgetDropdown_4"
|
||||
:data="[10, 22, 34, 46, 58, 70, 46, 23, 45, 78, 34, 12]"
|
||||
label="Members"
|
||||
color="rgb(250, 152, 152)"
|
||||
<CChartBarSimple
|
||||
style="height:70px"
|
||||
backgroundColor="rgb(250, 152, 152)"
|
||||
label="Members"
|
||||
labels="months"
|
||||
/>
|
||||
</CWidgetDropdown>
|
||||
</CCol>
|
||||
@@ -119,12 +117,15 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import { CChartLineSimple, CChartBarSimple } from '../charts/index.js'
|
||||
|
||||
export default {
|
||||
name: 'WidgetsDropdown',
|
||||
data () {
|
||||
return {
|
||||
months: ['January', 'February', 'March', 'April', 'May', 'June', 'July']
|
||||
}
|
||||
}
|
||||
// data () {
|
||||
// return {
|
||||
// months: ['January', 'February', 'March', 'April', 'May', 'June', 'July']
|
||||
// }
|
||||
// },
|
||||
components: { CChartLineSimple, CChartBarSimple }
|
||||
}
|
||||
</script>
|
||||
|
||||
Reference in New Issue
Block a user