Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Pagination in Google charts?

I am using Google charts to show some graphs in my website. The thing is I have too many periods (by weeks), imagine two years, I would have over 100 weeks, the chart really becomes incomprehensible, so I thought about adding some kind of pagination by month, is this possible?

$j('#Summary').Chart({
    chartClass: google.visualization.AreaChart,
    chartOptions: {
        backgroundColor: '#FFF',
        width: '100%',
        height: 400,
        hAxis: { title: 'time' },
        vAxis: { title: 'contents' },
        isStacked: true
    },
    chartData: data,
    setCertainty: true
});
like image 938
MNS Avatar asked Nov 10 '22 14:11

MNS


1 Answers

Maybe you this is what you are looking for

https://developers.google.com/chart/interactive/docs/examples#tablequerywrapper

Is a table, but is paginated

If not, try to implement some system to move ranges between your data. Some example, will help

like image 93
ibpeco Avatar answered Nov 15 '22 04:11

ibpeco