fix: fix charts
This commit is contained in:
@@ -15,6 +15,7 @@ function random (min, max) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
|
name: 'MainChartExample',
|
||||||
components: {
|
components: {
|
||||||
CChartLine
|
CChartLine
|
||||||
},
|
},
|
||||||
@@ -39,7 +40,7 @@ export default {
|
|||||||
label: 'My First dataset',
|
label: 'My First dataset',
|
||||||
backgroundColor: hexToRgba(brandInfo, 10),
|
backgroundColor: hexToRgba(brandInfo, 10),
|
||||||
borderColor: brandInfo,
|
borderColor: brandInfo,
|
||||||
pointHoverBackgroundColor: '#fff',
|
pointHoverBackgroundColor: brandInfo,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
data: data1
|
data: data1
|
||||||
},
|
},
|
||||||
@@ -47,7 +48,7 @@ export default {
|
|||||||
label: 'My Second dataset',
|
label: 'My Second dataset',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
borderColor: brandSuccess,
|
borderColor: brandSuccess,
|
||||||
pointHoverBackgroundColor: '#fff',
|
pointHoverBackgroundColor: brandSuccess,
|
||||||
borderWidth: 2,
|
borderWidth: 2,
|
||||||
data: data2
|
data: data2
|
||||||
},
|
},
|
||||||
@@ -55,7 +56,7 @@ export default {
|
|||||||
label: 'My Third dataset',
|
label: 'My Third dataset',
|
||||||
backgroundColor: 'transparent',
|
backgroundColor: 'transparent',
|
||||||
borderColor: brandDanger,
|
borderColor: brandDanger,
|
||||||
pointHoverBackgroundColor: '#fff',
|
pointHoverBackgroundColor: brandDanger,
|
||||||
borderWidth: 1,
|
borderWidth: 1,
|
||||||
borderDash: [8, 5],
|
borderDash: [8, 5],
|
||||||
data: data3
|
data: data3
|
||||||
|
|||||||
@@ -10,13 +10,12 @@
|
|||||||
left-footer="feeds"
|
left-footer="feeds"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialFacebook"
|
name="facebook"
|
||||||
height="52"
|
height="52"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
<CChartLineSimple
|
<CChartLineSimple
|
||||||
style="height:100px"
|
class="c-chart-brand"
|
||||||
class="position-absolute"
|
|
||||||
background-color="rgba(255,255,255,.1)"
|
background-color="rgba(255,255,255,.1)"
|
||||||
:data-points="[65, 59, 84, 84, 51, 55, 40]"
|
:data-points="[65, 59, 84, 84, 51, 55, 40]"
|
||||||
label="Friends"
|
label="Friends"
|
||||||
@@ -33,13 +32,12 @@
|
|||||||
left-footer="tweets"
|
left-footer="tweets"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialTwitter"
|
name="twitter"
|
||||||
height="52"
|
height="52"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
<CChartLineSimple
|
<CChartLineSimple
|
||||||
style="height:100px"
|
class="c-chart-brand"
|
||||||
class="position-absolute"
|
|
||||||
background-color="rgba(255,255,255,.1)"
|
background-color="rgba(255,255,255,.1)"
|
||||||
:data-points="[1, 13, 9, 17, 34, 41, 38]"
|
:data-points="[1, 13, 9, 17, 34, 41, 38]"
|
||||||
label="Followers"
|
label="Followers"
|
||||||
@@ -56,13 +54,12 @@
|
|||||||
left-footer="feeds"
|
left-footer="feeds"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialLinkedin"
|
name="linkedin"
|
||||||
height="52"
|
height="52"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
<CChartLineSimple
|
<CChartLineSimple
|
||||||
style="height:100px"
|
class="c-chart-brand"
|
||||||
class="position-absolute"
|
|
||||||
background-color="rgba(255,255,255,.1)"
|
background-color="rgba(255,255,255,.1)"
|
||||||
:data-points="[78, 81, 80, 45, 34, 12, 40]"
|
:data-points="[78, 81, 80, 45, 34, 12, 40]"
|
||||||
label="Contracts"
|
label="Contracts"
|
||||||
@@ -84,8 +81,7 @@
|
|||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
<CChartLineSimple
|
<CChartLineSimple
|
||||||
style="height:100px"
|
class="c-chart-brand"
|
||||||
class="position-absolute"
|
|
||||||
background-color="rgba(255,255,255,.1)"
|
background-color="rgba(255,255,255,.1)"
|
||||||
:data-points="[35, 23, 56, 22, 97, 23, 64]"
|
:data-points="[35, 23, 56, 22, 97, 23, 64]"
|
||||||
label="Followers"
|
label="Followers"
|
||||||
@@ -104,7 +100,7 @@
|
|||||||
left-footer="feeds"
|
left-footer="feeds"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialFacebook"
|
name="facebook"
|
||||||
height="56"
|
height="56"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
@@ -119,7 +115,7 @@
|
|||||||
left-footer="tweets"
|
left-footer="tweets"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialTwitter"
|
name="twitter"
|
||||||
height="56"
|
height="56"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
@@ -134,7 +130,7 @@
|
|||||||
left-footer="feeds"
|
left-footer="feeds"
|
||||||
>
|
>
|
||||||
<CIcon
|
<CIcon
|
||||||
name="socialLinkedin"
|
name="linkedin"
|
||||||
height="56"
|
height="56"
|
||||||
class="my-4"
|
class="my-4"
|
||||||
/>
|
/>
|
||||||
@@ -172,3 +168,11 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.c-chart-brand {
|
||||||
|
position: absolute;
|
||||||
|
width: 100%;
|
||||||
|
height: 100px;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user