1
如果elasticY(true)使得散点图能够在重绘事件触发时重新计算y轴范围?dc.js散点图和弹性行为
我已经使用了Scatter Brushing示例来演示。以下属性添加到各图表:
.yAxisPadding('5%') // Allow the max values to be brushed
.elasticY(true) // Allow the chart to recalculate the Y axis range
这里是一个例子jsFiddle。
我认为通过刷新左散点图,在图表中间选择一对点会导致右散点图重新计算其Y轴范围。但这似乎并不正确。这是一个错误还是我错过了什么?
完美。感谢您的解释和代码。 –
与elasticY相关的问题可以在[BrushY值绑定的ElasticY]中找到(https://stackoverflow.com/questions/48079293/dc-js-elasticy-range-bound-by-brush-y-values) –