简体   繁体   中英

morris pie chart with a larger data

I need to know how can with jquery maybe show a better pie chart with morris.js...with jquery flot the library I can hide the result with per example less than 100 coincidences but with morris I don't know how?

Here the capture:

莫里斯数据量更大

and I want to show it like this one:

第二次捕获

here is the jquery i use:

<script type='text/javascript' charset='utf-8'> 
$(function () {
    var pie = {
        element: 'pie',
        hideHover: 'auto',
        resize: true,
        data: <?php include('graficas6.php'); ?>,
  colors: [
    '#1424b8',
    '#0aa623',
    '#940f3f',
    '#148585',
    '#098215',
    '#b86c14',
    '#b83214'
  ],
        formatter: function (y) {
            return y + " "
        }
    }
    donut1 = Morris.Donut(pie)
}); 
</script>

I would suggest if you have the large data then you should use pagination ,so that data will be shown on each of the different pages.

There are many benefits if you look into these website.

https://demo.aheadmetrics.com/#UIJGJX6MIQ

I am currently making my ecommerce sales report . Once it gets love i will put that link over here

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM