Fix axis classing issues

master
johnkiernander 2014-12-16 14:43:38 +00:00
parent ce6c662820
commit f06e326968
1 changed files with 2 additions and 2 deletions

View File

@ -203,7 +203,7 @@
if (axis.shapes === null) {
// Add a group for the axes to allow css formatting
axis.shapes = this._group.append("g")
.attr("class", "dimple-axis " + "dimple-axis-" + axis.position)
.attr("class", "dimple-axis dimple-axis-" + axis.position)
.each(function () {
if (!chart.noFormats) {
d3.select(this)
@ -384,7 +384,7 @@
// use the dimension name
if (!axis.hidden && (axis.position === "x" || axis.position === "y") && axis.title !== null) {
axis.titleShape = this._group.append("text")
.attr("class", "dimple-axis dimple-title " + chart.customClassList.axisTitle + "dimple-axis-" + axis.position);
.attr("class", "dimple-axis dimple-title " + chart.customClassList.axisTitle + " dimple-axis-" + axis.position);
axis.titleShape
.attr("x", titleX)
.attr("y", titleY)