
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
vue-c3 is a reusable vue component for c3 charts
npm install --save vue-c3
# and if it's not already installed:
npm install --save c3
In your vue-component:
<template>
<div>
<vue-c3 :handler="handler"></vue-c3>
</div>
</template>
<script>
import Vue from 'vue'
import VueC3 from 'vue-c3'
export default {
name: ...,
components: {
VueC3
},
data () {
return {
handler: new Vue()
}
}
}
</script>
You can use the handler to send events to the vue-c3 component:
To initialize the c3 chart call:
<script>
...
export default {
name: ...,
mounted () {
// to init the graph call:
const options = {
data: {
columns: [
['data1', 2, 4, 1, 5, 2, 1],
['data2', 7, 2, 4, 6, 10, 1]
],
...
},
...
}
this.handler.$emit('init', options)
}
}
</script>
An overview of all events which can be submitted to the .$emit(name, ..) method:
| Name | Parameters | Description |
|---|---|---|
init | options | Use this method before anything else to generate the chart |
destroy | - | Used to destroy the chart |
dispatch | api | Access the c3 chart object directly to use the api |
For example you can use this.handler.$emit('dispatch', (chart) => chart.resize()) to resize the chart.
For more information about c3 see the documentation http://c3js.org/reference.html.
Copyright (c) 2017 - 2018 Christoph Biering, Licensed under the MIT license.
FAQs
vue-c3 is a reusable vue component for c3 charts
The npm package vue-c3 receives a total of 740 weekly downloads. As such, vue-c3 popularity was classified as not popular.
We found that vue-c3 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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.