A commenter on Reddit looked at one of my charts for about ten seconds and found a bug I had shipped to everyone.
The chart was a combo chart: revenue as bars on the left axis, profit margin as a line on the right axis. Pretty standard dashboard stuff. Their question was simple: "where is zero on the right axis?"
It wasn't where the bars started.
What went wrong
Two axes on one chart means two sets of tick labels sharing one set of grid lines. My first version got half of that right. The right axis picked the same number of ticks as the left, each one a round number, so every label sat neatly on a grid line.
What it never did was force the two zeros onto the same line.
Take revenue from $0 to $62K and a margin between β10% and 35%:
Left axis: 0, 20K, 40K, 60K, 80K (five lines)
Right axis: five lines, round step, must cover β10% to 35%, so: β20%, 0%, 20%, 40%, 60%
Look at the second line. The right axis says 0%, the left says $20K.β¦