Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
development:javascript:vue:charts [2021/07/07 14:39] kalenpw removed |
— (current) | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Charts ====== | ||
- | ---- | ||
- | |||
- | ===== Apex Charts ===== | ||
- | |||
- | ** Installation ** \\ | ||
- | <code bash> | ||
- | npm install --save apexcharts | ||
- | npm install --save vue3-apexcharts | ||
- | </ | ||
- | In '' | ||
- | <code javascript> | ||
- | import VueApexCharts from " | ||
- | |||
- | createApp(App).use(VueApexCharts).mount('# | ||
- | </ | ||
- | |||
- | ---- | ||
- | ** Example ** | ||
- | <code javascript> | ||
- | < | ||
- | <div> | ||
- | < | ||
- | width=" | ||
- | type=" | ||
- | : | ||
- | : | ||
- | ></ | ||
- | </ | ||
- | </ | ||
- | |||
- | < | ||
- | export default { | ||
- | name: " | ||
- | data: function () { | ||
- | return { | ||
- | options: { | ||
- | chart: { | ||
- | id: " | ||
- | }, | ||
- | xaxis: { | ||
- | type: " | ||
- | }, | ||
- | title: { | ||
- | text: " | ||
- | align: " | ||
- | }, | ||
- | }, | ||
- | series: [ | ||
- | { | ||
- | name: " | ||
- | data: [ | ||
- | [1327532400000, | ||
- | [1327618800000, | ||
- | [1327964400000, | ||
- | [1328223600000, | ||
- | [1328569200000, | ||
- | [1328742000000, | ||
- | [1330383600000, | ||
- | ], | ||
- | }, | ||
- | ], | ||
- | }; | ||
- | }, | ||
- | }; | ||
- | </ | ||
- | |||
- | </ |