Jquery JQPlot Dragable constrainTo属性不';行不通

Jquery JQPlot Dragable constrainTo属性不';行不通,jquery,jqplot,Jquery,Jqplot,我有一个用jqplot绘制的图表,它由基于DataSeriesToPlot的动态线数组成。我希望所有线只能在Y轴上拖动,但“约束到Y”属性不起作用。这是我的代码,如果你能帮助我,我将不胜感激 $j.jqplot.config.enablePlugins = true; plot1 = $j.jqplot('chart', DataSeriesToPlot, { animate : true, title : '

我有一个用jqplot绘制的图表,它由基于DataSeriesToPlot的动态线数组成。我希望所有线只能在Y轴上拖动,但“约束到Y”属性不起作用。这是我的代码,如果你能帮助我,我将不胜感激

$j.jqplot.config.enablePlugins = true;

        plot1 = $j.jqplot('chart', DataSeriesToPlot,

        {
            animate : true,

            title : 'Draggable Chart Demo',
            neighborThreshold : -1,
            legend : {
                renderer : $j.jqplot.EnhancedLegendRenderer,

                show : true,
                labels : legendTypes,
                showSwatch : true,
                predraw : false,
                placement : "outsideGrid",
            },

            seriesDefaults : {

                dragable : {
                    color : '#fffdf6',
                    constrainTo : 'y',

                }

            },

            axes : {

                xaxis : {

                    pad : 1.1,
                    renderer : $j.jqplot.DateAxisRenderer,

                    labelRenderer : $j.jqplot.CanvasAxisLabelRenderer,
                    label : 'Month',
                    labelOptions : {
                        labelPosition : 'middle',
                        fontFamily : 'Helvetica',
                        fontSize : '14pt'
                    },
                    tickRenderer : $j.jqplot.CanvasAxisTickRenderer,
                    tickOptions : {
                        mark : 'outside',
                        showMark : true,
                        showGridLine : true,
                        show : true,
                        showLabel : true,
                        fontWeight : 'normal',

                        angle : -30,
                        formatString : '%F'

                    },
                    tickInterval : "4 months",

                    showTicks : true,
                    showTickMarks : true

                },
                yaxis : {
                    min : mbMin * 0.8,
                    max : mbMax * 1.2,

                    tickRenderer : $j.jqplot.CanvasAxisTickRenderer,
                    tickOptions : {
                        mark : 'outside',
                        showMark : true,
                        showGridLine : true,
                        show : true,
                        showLabel : true,
                        fontWeight : 'normal',
                        formatString : '%.2f'

                    },
                    labelRenderer : $j.jqplot.CanvasAxisLabelRenderer,

                    labelOptions : {

                        fontFamily : 'Helvetica',
                        fontSize : '14pt'

                    },
                    label : 'MB Per Sub',
                },

            },
            highlighter : {
                sizeAdjust : 10,
                showTooltip : true,
                fadeTooltip : true,
                tooltipFadeSpeed : "fast",
                tooltipOffset : 2,
                tooltipAxes : 'both',
                tooltipLocation : 'n',
                tooltipSeparator : ', ',
                useAxesFormatters : true
            },

            cursor : {
                show : true,
                showTooltip : true,
                followMouse : true,
                //showTooltipOutsideZoom : true,
                constrainOutsideZoom : false,
                showTooltipGridPosition : false,
                showTooltipUnitPosition : false,
                useAxesFormatters : true,
                zoom : true,
                looseZoom : true

            }
        })

    }

我也有同样的问题。尝试将可拖动对象放入“系列”选项中

series: [{
    dragable : {
      color : '#fffdf6',
      constrainTo : 'y',
    }
}]
它应该会起作用