react-apexcharts icon indicating copy to clipboard operation
react-apexcharts copied to clipboard

TypeError: Cannot read property 'data' of undefined

Open Holenvik opened this issue 4 years ago β€’ 6 comments

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

Holenvik avatar Nov 18 '20 21:11 Holenvik

БСзымянный222

Holenvik avatar Nov 18 '20 21:11 Holenvik

БСзымянный222

Holenvik avatar Nov 18 '20 21:11 Holenvik

xaxis categories can be only only [] or string[] series: [] | { name: string; data: number[]}[]

Holenvik avatar Nov 18 '20 21:11 Holenvik

<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%'}
                />

Holenvik avatar Nov 19 '20 07:11 Holenvik

ΠŸΡ€ΠΈΠ²Π΅Ρ‚! Как Ρ€Π΅ΡˆΠΈΠ» Π² ΠΈΡ‚ΠΎΠ³Π΅? ΠΈ Π½Π° ΠΊΠ°ΠΊΠΎΠΉ ΠΊΠΎΠ½ΠΊΡ€Π΅Ρ‚Π½ΠΎ вСрсии это Π²Ρ‹Π»Π΅Π·Π»ΠΎ? Π£ мСня Ρ‚ΠΎΠΆΠ΅ самоС Π½Π° 3.23.1

sleleko avatar Jan 22 '21 09:01 sleleko

Any fix on this? facing the same issue

Moumit avatar Jul 13 '21 16:07 Moumit

Facing the same issue still ....

AyemunHossain avatar Jan 12 '23 15:01 AyemunHossain