Skip to content

Commit

Permalink
Fixed the position of x-axis title
Browse files Browse the repository at this point in the history
  • Loading branch information
annapawlicka committed Jul 23, 2013
1 parent d17e1de commit b4740bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion site/js/diabetes_ccg_prevalence.js
Original file line number Diff line number Diff line change
Expand Up @@ -133,8 +133,10 @@ var ccg_diabetes_prevalence_map = function ccg_diabetes_prevalence_map(div_map,
sidechart.addSeries(["Practice Name", "Practice Code"], dimple.plot.bar);
sidechart.draw();
sidechart.svg.selectAll("g")
// Override x-axis label
// Override x-axis title
x.titleShape.text("Practice Name");
// Title is placed below the tick labels by default. This overrides this setting and places it immediately below the axis.
x.titleShape.attr("y", sidechart.height + 55);
// Remove tick labels on x-axis
x.shapes.selectAll("text").remove();
});
Expand Down

0 comments on commit b4740bd

Please sign in to comment.