Hi, I am using highchart js to show active and no active users of the current year,2021. Now I want to show the active and no active user of the past years:2020,2019,2018....2015
I want to make a dropdown of year and onchanging the year i want to refresh the graph. My question is how to refresh the graph when choosing another date form dropdown without refreshing page
here $activeuser and $notactiveuser is for date 2021. I have query for that.
Now I want to get active and nonactive users of the past date: 2020,2019.
Is there any way to obtain it. I am using this chart https://www.highcharts.com/demo/line-labels/grid-light
<script>
Highcharts.chart('container', {
chart: {
type: 'line'
},
title: {
text: 'Monthly Active and non active users'
},
subtitle: {
text: ''
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
yAxis: {
title: {
text: 'Users'
}
},
plotOptions: {
line: {
dat
aLabels: {
enabled: true
},
enableMouseTracking: false
}
},
series: [{
name: 'Active',
data: <?php echo json_encode($activeuser) ?>
}, {
name: 'Trial',
data: <?php echo json_encode($notactiveuser) ?>
}]
});
</script>