Gathering detailed insights and metrics for vue-apexcharts-trendline
Gathering detailed insights and metrics for vue-apexcharts-trendline
Gathering detailed insights and metrics for vue-apexcharts-trendline
Gathering detailed insights and metrics for vue-apexcharts-trendline
npm install vue-apexcharts-trendline
Module System
Min. Node Version
Typescript Support
Node Version
NPM Version
3 Stars
4 Commits
1 Watching
2 Branches
1 Contributors
Updated on 27 Jan 2023
Vue (99.15%)
JavaScript (0.85%)
Cumulative downloads
Total Downloads
Last day
400%
5
Compared to previous day
Last week
-15.4%
11
Compared to previous week
Last month
18.4%
45
Compared to previous month
Last year
-24.8%
829
Compared to previous year
3
vue-apexcharts component for adding a trend line to your charts. This component uses linear regression to calculate the trend line.
Installing via npm
1npm install vue-apexcharts-trendline
type
property is important for stacked charts.This is a basic example show how to us the component in a single file vue component.
1<template> 2 <div id="trend-line"> 3 <vue-apexcharts-trendline :type="type" :options="options" :series="series" :trend-options="trend_options"/> 4 </div> 5</template> 6 7<script> 8 import VueApexchartsTrendline from "vue-apexcharts-trendline"; 9 10 export default { 11 name: 'ExampleChart', 12 components: { 13 VueApexchartsTrendline, 14 }, 15 data() { 16 return { 17 series: [{ 18 name: 'series 1', 19 type: 'area', 20 data: [ 21 {x: 0, y: 4}, 22 {x: 1, y: 2}, 23 {x: 2, y: 5}, 24 {x: 3, y: 6}, 25 {x: 4, y: 8}, 26 {x: 5, y: 2}, 27 {x: 6, y: 12}, 28 {x: 7, y: 23}, 29 {x: 8, y: 17}, 30 {x: 9, y: 15}, 31 ], 32 }, { 33 name: 'series 2', 34 type: 'area', 35 data: [ 36 {x: 0, y: 2}, 37 {x: 1, y: 5}, 38 {x: 2, y: 10}, 39 {x: 3, y: 16}, 40 {x: 4, y: 6}, 41 {x: 5, y: 8}, 42 {x: 6, y: 6}, 43 {x: 7, y: 4}, 44 {x: 8, y: 13}, 45 {x: 9, y: 11}, 46 ], 47 }], 48 options: { 49 title: { 50 text: 'Example', 51 align: 'center', 52 }, 53 chart: { 54 stacked: true, 55 }, 56 }, 57 type: 'line', 58 trend_options: { 59 indices: [0], 60 combined: false, 61 }, 62 }; 63 }, 64 }; 65</script> 66
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
1 existing vulnerabilities detected
Details
Reason
no SAST tool detected
Details
Reason
Found 0/4 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2024-11-25
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More