ํ๋ก์ ํธ
GitHub์์ ๋ณด๊ธฐ
lin-xin/vue-schart
์๊ฐ
๐ sChart.js์ฉ Vue.js ๋ํผ์ ๋๋ค.
์น ๋ฐ ์ฑ ๊ฐ๋ฐ์ธก์ ๋ ์คํ ์ฆ๊ฐ
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- ๊ธฐ๋ก ์์ง ์ค
์๋ก ๊ฒน์น๋ ๊ธฐ๊ฐ์ ์์ฆ๊ฐ๋์ด๋ฉฐ ์ผ๋ณ ํฉ๊ณ๊ฐ ์๋๋๋ค. ์ธก์ ๊ฐ์ด ์์ผ๋ฉด ๋น์ ๋ก๋๋ค. ์คํ๋ ๊ด์ฌ๋๋ฅผ ๋ํ๋ด๋ฉฐ ํ์ง์ ๋ณด์ฅํ์ง ์์ต๋๋ค.
README.md
Originalvue-schart
:bar_chart: Vue.js wrapper for sChart.js
Support for use at the mobile. Support vue.js 1.x & 2.x & 3.x
Usage
Install:
npm install vue-schart -S
Use in component:
<template>
<div id="app">
<schart class="wrapper" canvasId="canvas" :options="options" />
</div>
</template>
<script>
import Schart from 'vue-schart';
export default {
data() {
return {
options: {
type: "bar",
title: {
text: "ๆ่ฟไธๅจๅๅ็ฑป้ๅฎๅพ"
},
bgColor: "#fbfbfb",
labels: ["ๅจไธ", "ๅจไบ", "ๅจไธ", "ๅจๅ", "ๅจไบ"],
datasets: [
{
label: "ๅฎถ็ต",
fillColor: "rgba(241, 49, 74, 0.5)",
data: [234, 278, 270, 190, 230]
},
{
label: "็พ่ดง",
data: [164, 178, 190, 135, 160]
},
{
label: "้ฃๅ",
data: [144, 198, 150, 235, 120]
}
]
}
}
},
components:{
Schart
}
}
</script>
<style>
.wrapper{
width: 7rem;
height: 5rem;
}
</style>
Options
Refer to the documentation for sChart.js.
License
๊ด๋ จ ํ๋ก์ ํธ ์ดํด๋ณด๊ธฐ
๋ถ๋ฌ์ค๋ ์คโฆ