如何使用jqplot设置饼图的圆圈大小? [英] How can I set circle size of the pie chart with jqplot?

查看:86
本文介绍了如何使用jqplot设置饼图的圆圈大小?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想用jqplot设置饼图的圆圈大小....我有以下代码段...

I ned to set the circle size for pie chart with jqplot....I have following code snippet...

var plot = jQuery.jqplot ('chart', [data], 
                {                       
                    seriesDefaults: {
                        renderer: jQuery.jqplot.PieRenderer,
                        rendererOptions: {
                            showDataLabels: true
                        },
                        pointLabels: { show: true }                          
                    }, 
                    diameter : 1,
                    legend: { 
                        show:true,
                        location: 'e',                    
                        placement: 'inside'                    
                    },
                    title: {

                        fontSize:'14px',
                        fontWeight: 'bold',
                        fontFamily: 'Arial',                    
                        show: true
                    }
                }

这是设置圆直径的正确方法吗?

is this the right way to set diameter for the circle?

推荐答案

它应该在seriesDefault.renderOptions.diameter下.在 http://www.jqplot.com/docs/files/jqPlotOptions中查看其文档-txt.html

seriesDefaults: {
    rendererOptions: {
        diameter: 1, // diameter of pie, auto computed by default.
    }
}

这篇关于如何使用jqplot设置饼图的圆圈大小?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆