首页 新闻 会员 周边

mvc 使用highcharts饼图,无法显示

0
悬赏园豆:10 [待解决问题]

mvc 使用highcharts饼图,无法显示

前台代码

  $.ajax({
                type: 'POST',
                url: "/JiaKuanTongJi/GetGZYuanYin",
                data: {
                    btime: $("#btime").val(),
                    etime: $("#etime").val(),
                    gd_type: $("#gd_type").val(),
                    clime: $("#clime").val()
                },
                dataType: "text",
                success: function (data) {
                    $('#container').highcharts({
                        chart: {
                            type: 'pie',
                            options3d: {
                                enabled: true,
                                alpha: 45,
                                beta: 0
                            }
                        },
                        title: {
                            text: 'Browser market shares at a specific website, 2014'
                        },
                        tooltip: {
                            pointFormat: '{series.name}: <b>{point.percentage:.1f}%</b>'
                        },
                        plotOptions: {
                            pie: {
                                allowPointSelect: true,
                                cursor: 'pointer',
                                depth: 35,
                                dataLabels: {
                                    enabled: true,
                                    format: '{point.name}'
                                }
                            }
                        },
                        series: [{
                            type: 'pie',
                            name: 'Browser share',
                            data: data
                        }]
                    });

                },
                error: function () {
                    alert("系统出现异常,请稍后在试!");
                }
            }, "json");

接收的数据
图片说明

wjblog666的主页 wjblog666 | 初学一级 | 园豆:94
提问于:2015-11-06 11:21
< >
分享
所有回答(1)
0

 data: data换成  data:eval(data)

xmj112288 | 园豆:126 (初学一级) | 2015-11-07 21:27
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册