Product
Introducing SSO
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
ember-apexchartsjs
Advanced tools
Readme
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
The npm package ember-apexchartsjs receives a total of 10 weekly downloads. As such, ember-apexchartsjs popularity was classified as not popular.
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.
Product
Streamline your login process and enhance security by enabling Single Sign-On (SSO) on the Socket platform, now available for all customers on the Enterprise plan, supporting 20+ identity providers.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.