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.
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
The npm package ember-apexchartsjs receives a total of 19 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.
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.