Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/javascript/475.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Javascript jqPlot自动高度_Javascript_Jquery_Charts_Jqplot - Fatal编程技术网

Javascript jqPlot自动高度

Javascript jqPlot自动高度,javascript,jquery,charts,jqplot,Javascript,Jquery,Charts,Jqplot,我的jqplot图形的画布高度有一个严重问题 这是一个水平条形图。条数是动态的,因此画布的高度也应该是动态的 我得到的是,无论条数是多少,画布的高度总是相同的 barWidth,barMargin,barPadding被忽略 这是我的密码: $.jqplot(tip, data, { stackSeries : false, captureRightClick : true, seriesDefaults : { renderer : $.jqplot.

我的jqplot图形的画布高度有一个严重问题

这是一个水平条形图。条数是动态的,因此画布的高度也应该是动态的

我得到的是,无论条数是多少,画布的高度总是相同的

barWidth
barMargin
barPadding
被忽略


这是我的密码:

$.jqplot(tip, data, {
    stackSeries : false,
    captureRightClick : true,
    seriesDefaults : {
        renderer : $.jqplot.BarRenderer,
        rendererOptions : {
            barDirection : 'horizontal',
            barWidth : 15,
            barPadding : 5,
            barMargin : 15,
            highlightMouseDown : true
        },
        shadowAngle : 135,
        pointLabels : {
            show : true,
            location : 'e',
            edgeTolerance : -40
        }
    },
    title : {
        show : true
    },
    series : [{
        label:'aaa'
    }],
    axesDefaults : {
        tickRenderer: $.jqplot.CanvasAxisTickRenderer ,
    },
    axes: {
        yaxis: {
            renderer: $.jqplot.CategoryAxisRenderer,
        }
    },
});
有人知道为什么身高不能自动适应吗