js/scatterPlot.js, js/generic_axis.js: extract barTab computation to GenericAxis

See #2700.
7 jobs for feature-c/2700-bartab-from-axes in 4 minutes and 29 seconds (queued for 2 seconds)
latest