BenOctober 5, 2016 at 10:15 am #6504
I’m trying to create a series of 3 stacked column histograms from data with a format of [[Date, number, number]]. The problem is that using d3.time.scale() as my xScale is resulting in all columns being shifted to the right, overflowing off of the vz-plot svg.
I’m using the same plotting function for each histogram, and two of them use d3.time.scale() whereas the third uses an ordinal scale. The third one plots properly. At the link below is the relevant bit of code. I’ve omitted the onMouseOut & onMouseOver tooltip code for clarity, but if you think it’s playing a role I can provide that as well.
Using xScale of d3.time.scale() in column chart results in shifted bars
© 2017 — vizuly.io