MapD Charting Ordinal Bar Chart
I have been trying to display an ordinal bar chart, but I can not get the x axis labels to show up on the chart.
var rowChartDimension = crossFilter.dimension("dropoff_boroname"); var rowChartGroup = rowChartDimension.group().reduceCount(); dcBarChart .width(w) .height(h / 3) .barPadding(0.1) .outerPadding(0.05) .dimension(rowChartDimension) .group(rowChartGroup) .elasticY(true) .xUnits(dc.units.ordinal) .x(d3.scale.ordinal()) .xAxisLabel("City") .yAxisLabel("Number of Taxi Rides")
Only the first two labels are displayed and they are in very strange places. If anyone has any examples of this working properly, I would really appreciate it.
Please sign in to leave a comment.