react-apexcharts
react-apexcharts copied to clipboard
TypeError: Cannot read property 'data' of undefined
Hi, I have a problem All props are good as you can see, but Apexchart is crashing every time Installed last versions of react-apexcharts and apexcharts
xaxis categories can be only only [] or string[] series: [] | { name: string; data: number[]}[]
<ApexCharts
options={{
chart: {
locales: [APEX_CHART_LOCALE_DATA],
defaultLocale: 'ru',
type: 'bar',
height: 350,
stacked: true,
},
plotOptions: {
bar: {
horizontal: true,
},
},
fill: {
opacity: 1,
},
stroke: {
width: 1,
colors: ['#fff'],
},
legend: {
position: 'bottom',
},
responsive: [
{
breakpoint: 480,
options: {
legend: {
position: 'bottom',
offsetX: -10,
offsetY: 0,
},
},
},
],
yaxis: {
labels: {
formatter: (value: string) =>
getMonthAsText(value),
},
},
xaxis: {
categories,
},
}}
series={prices}
type="bar"
height={460}
width={'100%'}
/>
ΠΡΠΈΠ²Π΅Ρ! ΠΠ°ΠΊ ΡΠ΅ΡΠΈΠ» Π² ΠΈΡΠΎΠ³Π΅? ΠΈ Π½Π° ΠΊΠ°ΠΊΠΎΠΉ ΠΊΠΎΠ½ΠΊΡΠ΅ΡΠ½ΠΎ Π²Π΅ΡΡΠΈΠΈ ΡΡΠΎ Π²ΡΠ»Π΅Π·Π»ΠΎ? Π£ ΠΌΠ΅Π½Ρ ΡΠΎΠΆΠ΅ ΡΠ°ΠΌΠΎΠ΅ Π½Π° 3.23.1
Any fix on this? facing the same issue
Facing the same issue still ....