Multiple Charts in the Stats overview widget

Hi i am trying to build a stats overview widget where i would like to show 2 datasets to compare 2 periods. Is that possible or I need to use "big" charts widgets Or something totally custom ?
13 Replies
Bjoskiller
BjoskillerOP15mo ago
@Dennis Koch any thought on this ?
toeknee
toeknee15mo ago
Please read the #✅┊rules and do not tag people. You can do that with #apex-charts quite easily
Bjoskiller
BjoskillerOP15mo ago
sorry for tagging newbie error
Bjoskiller
BjoskillerOP15mo ago
i was talking about the small widget
No description
toeknee
toeknee15mo ago
Ahh, I am sure I have seen it before. What is you pass in the data as a nested array? Might not be possible though
Bjoskiller
BjoskillerOP15mo ago
tried that but it won't work because of the js implementation
No description
Bjoskiller
BjoskillerOP15mo ago
so basically i need to find a way to override that js and i should be good
awcodes
awcodes15mo ago
That small widget is a ‘stat chart’. What you’re showing in that screen shot would be a regular ‘chart’ widget They are two different widgets.
Bjoskiller
BjoskillerOP15mo ago
I know, my issue is that i want to use the 'stats chart' to display two charts not just one to compare two dates. This could have been made easy if they 'stats chart' can accept nested array.
awcodes
awcodes15mo ago
Then you need a custom widget. The stats chart is not built for that. The chart widget is built for it. Even then I think you still have issues showing two different time frames in one chart.
Bjoskiller
BjoskillerOP15mo ago
so even with custom widget i can't achieve something like this ?
No description
awcodes
awcodes15mo ago
Possibly. I’m just not sure how chart.js would handle data from a different time frame across the x axis since the dates don’t match. But if it’s possible in chart.js. It’s doable.
toeknee
toeknee15mo ago
ApexCharts.js
JavaScript Chart Examples & Samples Demo – ApexCharts.js
Get a glimpse of ApexCharts by exploring all the samples created using the library. You can download these JavaScript Chart Examples and use them freely.
Want results from more Discord servers?
Add your server