Security News
The Unpaid Backbone of Open Source: Solo Maintainers Face Increasing Security Demands
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
ember-apexchartsjs
Advanced tools
A simple ember wrapper for apexcharts
ember install ember-apexchartsjs
type = 'bar';
width = '800px';
height = '400px';
series = [{
name: 'Sales',
data: [30,40,35,50,49,60,70,91,125]
}];
chartOptions = {
title: {
text: 'Bar Chart'
},
xaxis: {
categories: [1991,1992,1993,1994,1995,1996,1997, 1998,1999]
}
}
<ApexChart
@type={{this.type}}
@width={{this.width}}
@height={{this.height}}
@series={{this.series}}
@chartOptions={{this.chartOptions}}
/>
const chartOptions = {
chart: {
height: '400px',
type: 'line',
width: '800px'
},
series: [{
data: [30,40,35,50,49,60,70,91,125]
}],
xaxis: {
categories: [1991,1992,1993,1994,1995,1996,1997, 1998,1999]
}
}
<ApexChart
@chartOptions={{this.chartOptions}}
/>
The complete set of supported chart types and chart options can be found here: Apexcharts Documentation
All the apexchart events can be specified as arguments to the ApexChart component.
The example below potrays the use of click
and beforeMount
events.
type = 'bar';
series = [{
name: 'Sales',
data: [30,40,35,50,49,60,70,91,125]
}];
@action
clickHandler() {
//click handler
}
@action
beforeMountHandler() {
//before mount handler
}
<ApexChart
@type={{this.type}}
@series={{this.series}}
@onClick={{this.clickHandler}}
@onBeforeMount={{this.beforeMountHandler}}
/>
Complete list of action arguments and their corresponding apexchart event below:
Apexchart event | Action Argument |
---|---|
beforeMount | onBeforeMount |
beforeZoom | onBeforeZoom |
click | onClick |
dataPointSelection | onDataPointSelection |
dataPointMouseEnter | onDataPointMouseEnter |
dataPointMouseLeave | onDataPointMouseLeave |
legendClick | onLegendClick |
markerClick | onMarkerClick |
mouseMove | onMouseMove |
mounted | onMounted |
scrolled | onScrolled |
selection | onSelection |
updated | onUpdated |
zoomed | onZoomed |
See the Contributing guide for details.
This project is licensed under the MIT License.
FAQs
A simple ember wrapper around apexcharts
We found that ember-apexchartsjs demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers 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
Solo open source maintainers face burnout and security challenges, with 60% unpaid and 60% considering quitting.
Security News
License exceptions modify the terms of open source licenses, impacting how software can be used, modified, and distributed. Developers should be aware of the legal implications of these exceptions.
Security News
A developer is accusing Tencent of violating the GPL by modifying a Python utility and changing its license to BSD, highlighting the importance of copyleft compliance.