Open antumin opened 7 years ago
From https://stackoverflow.com/questions/35744202/nvd3-time-formatting-line-with-focus-chart/40713282, Kashyap's comment:
"In latest nvd3, you have to use following to update xScale. chart.xScale(d3.time.scale()); chart.focus.xScale(d3.time.scale());"
We went mad looking for this!
my chart is not in sync with focus when I use chart.focus.xScale(d3.time.scale());, any pointers on this?
When I set xScale of lineWithFocusChart to
d3.time.scale()
it is not reflected to the focus chart. Is it possible to change the xScale of the focus chart manually? However I thing that the default behaviour should be that it is reflected automatically.My Code looks as follows:
The resulting chart looks like that: