Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Factory wrapper for using G2 easier in a Vue Component with dynamic data
and size
props
Note that g2-vue
is just a wrapper, if you want to make a better chart, docs of G2
is HERE
$ npm install @antv/g2 --save
$ npm install g2-vue --save
g2-vue
works with a peerDependencies of g2
, you can specify the version of g2
in your package.json
<template>
<div>
<LineChart
:data="lineData"
/>
</div>
</template>
<script>
import createG2 from 'g2-vue'
let lineData = [
{'time': '3-21', 'pm25': 10},
{'time': '3-22', 'pm25': 40}
]
const LineChart = createG2(chart => {
chart.line().position('time*pm25').color('pm25').shape('spline').size(2)
chart.render()
})
export default {
components: {
LineChart
},
data () {
return {
lineData: lineData
}
}
}
</script>
FAQs
Factory wrapper for using G2 easily in a Vue Component.
The npm package g2-vue receives a total of 6 weekly downloads. As such, g2-vue popularity was classified as not popular.
We found that g2-vue demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.