dc-js / dc.js

Multi-Dimensional charting built to work natively with crossfilter rendered with d3.js
Apache License 2.0
7.42k stars 1.81k forks source link

"Hybrid" SeriesChart locks y axis min to zero #1805

Closed aberenyi closed 3 years ago

aberenyi commented 3 years ago

Hi there,

As you can see here I'm tryig to show a series of data points and regression lines.

The issue is that the y axis starts from 0 - it looks like elasticY and yAxisPadding are ignored. It works fine if I only use ScatterPlots as subCharts.

I guess I'm looking for a workaround here.

Cheers

p.s. I'm aware of the regression example, but I'd like to utilise pure dc functions to achieve something similar, i.e. w/o using d3's svg tinkering methods.

gordonwoodhull commented 3 years ago

This is true of all stacked charts and a duplicate of #667, which provides some workarounds.

It is debatable - sometimes it really needs to be locked to zero on the lower bound and elastic on the upper bound. Probably should be an option, but until then we have workarounds.

aberenyi commented 3 years ago

Many thanks for the lightning fast response @gordonwoodhull.

I swear I've tried to find similar issues, but I've missed #667 - many thanks for pointing me in the right direction!