c3js / c3

:bar_chart: A D3-based reusable chart library
http://c3js.org
MIT License
9.34k stars 1.39k forks source link

Subchart resets zoom when `chart.subchart.show()` is called #2792

Open digEmAll opened 4 years ago

digEmAll commented 4 years ago

Hi All, the function subchart.show() seems to reset the current zoom to the full domain.

Here's an attached jfiddle reproducing the issue: https://jsfiddle.net/a1t82cyn/3/

I think it might be related to the problem mentioned in this issue (still valid in version 0.7.15): https://github.com/c3js/c3/issues/2613