-
Notifications
You must be signed in to change notification settings - Fork 163
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
xaxis categories don't update with line chart (but do so with bar chart) #46
Comments
I suspect this is a bug which is caused by the latest update. If the above change fixes the issue, I will be sure of the cause of this bug and will work on it. |
That fixes the issue! Thanks! |
Hi, this issue seems to be still there when using "react-apexcharts": "^1.3.3", and "apexcharts": "^3.8.6",. As earlier, it gets resolved if I use xaxis.tickPlacement: 'between'. |
I'm facing the same issue, but using xaxis.tickPlacement: 'between' does not resolve the issue in my case.. PR94 versions: |
Have same for |
For me to solve using this method.. var chart = new ApexCharts(el, { ApexCharts.exec('mychart', 'updateOptions', { ApexCharts.exec('mychart', 'updateSeries', [{ |
I tried hours to solve this... after finding |
After hours -> |
Oh, my God. It's 2025 and this bug is still there. i spent 4 hours trying to figure out what the problem is and what i'm doing wrong. thank you so much. |
@junedchhipa |
I'm fetching data from an api that returns data for both the series and the x-axis categories properties. The api call and state updating is done within componentDidMount. This all works fine when the chart type is a bar chart, but the xaxis state won't update when the chart type is changed to a line chart. Any help you could provide would be greatly appreciated. Thanks!
`
import React, { Component } from 'react';
import Chart from 'react-apexcharts';
class WAUchart extends Component {
constructor(props) {
super(props);
this.state = {
options: {
chart: {
id: "WAU"
},
xaxis: {
type: "category",
categories: []
},
title: {
text: "WAU",
align: "center",
style: {
fontSize: "20px",
color: "black"
}
},
labels: []
},
series: [
{
name: "WAU",
data: []
}
],
};
};
}
export default WAUchart;
'
The text was updated successfully, but these errors were encountered: