You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi I am using React Fuse theme suggested from one of my client. On Dashboard i am showing some chart line chart bar and line chart etc. According to the design there are app icons on the y-axis of the chart lines. [Look at the screenshot attached with this message] I read apexcharts (https://apexcharts.com/docs/react-charts/) official documentation and try many other things which I found from internet but still got not any progress.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hi I am using React Fuse theme suggested from one of my client. On Dashboard i am showing some chart line chart bar and line chart etc. According to the design there are app icons on the y-axis of the chart lines. [Look at the screenshot attached with this message] I read apexcharts (https://apexcharts.com/docs/react-charts/) official documentation and try many other things which I found from internet but still got not any progress.

`function SalesCompareWidget(props) {
const theme = useTheme();
const chartSeries = [
{
name: 'iOS',
data: props.salesData?.map((item) => Number(item.ioscount?.toFixed(2))),
color: '#51ABFF',
},
{
name: 'Android',
data: props.salesData?.map((item) => Number(item.androidcount?.toFixed(2))),
color: '#34C759',
},
{
name: 'Web',
data: props.salesData?.map((item) => Number(item.webcount?.toFixed(2))),
color: '#9994FF',
},
];
const chartOptions = {
series: chartSeries ,
options: { grid: {
strokeDashArray: '2',
showLastBorder: false,
padding: {
left: 0,
right: 0,
},
},
legend: {
show: false,
},
chart: {
type: 'line',
height: 350,
toolbar: {
show: false,
},
},
plotOptions: {
bar: {
horizontal: false,
columnWidth: props.platform === '' ? '10%' : '8%',
endingShape: 'rounded',
},
},
dataLabels: {
enabled: false,
style: {
fontFamily: 'Figtree',
},
},
stroke: {
show: true,
curve: 'smooth',
},
xaxis: {
categories: props.salesData?.map((item) =>
item.date
? format(parse(item.date, 'dd-MM-yyyy', new Date()), 'dd MMM yyyy')
: format(parse(item.month, 'MM-yyyy', new Date()), 'MMM yyyy')
),
style: {
dateTimeFormat: 'dd MMM yyyy',
},
},
yaxis: {
show: true,
},
fill: {
opacity: 1,
},
},
};
return (
);
}
`
Beta Was this translation helpful? Give feedback.
All reactions