如何更改 y 轴的范围 - dc.js 复合线图

How can i change the range of the y Axis - dc.js composite Linechart

一些信息: 我有一个复合线图。 我的问题是: 我使用的是 elasticY,但我的轴从 0 开始,但我的最小值可以是 250。 是否有机会从 250 而不是从 0 开始 Y 轴?但是动态 Y 轴应该可以工作 (elasticY)

    var compositeAvg = dc.compositeChart("#avgline-chart");

    compositeAvg.width(1500).height(375)
        .group(filtered_group)
        .brushOn(true)
        .yAxisLabel("Morbalwait AVG ")
        .x(d3.scale.ordinal()) //x axis
         .xUnits(dc.units.ordinal)
        .margins({ top: 10, left: 50, right: 10, bottom: 50 })
        .elasticY(true)
        .elasticX(true)
        ._rangeBandPadding(1)
        .compose(composeLines())
        .legend(dc.legend().x(1425).y(0).itemHeight(13).gap(1));    

你试过 .y(d3.scale.linear().domain([250, yourmaxvalue]))