mirror of https://github.com/vitalif/dimple
Fix axis classing issues
parent
ce6c662820
commit
f06e326968
|
@ -203,7 +203,7 @@
|
||||||
if (axis.shapes === null) {
|
if (axis.shapes === null) {
|
||||||
// Add a group for the axes to allow css formatting
|
// Add a group for the axes to allow css formatting
|
||||||
axis.shapes = this._group.append("g")
|
axis.shapes = this._group.append("g")
|
||||||
.attr("class", "dimple-axis " + "dimple-axis-" + axis.position)
|
.attr("class", "dimple-axis dimple-axis-" + axis.position)
|
||||||
.each(function () {
|
.each(function () {
|
||||||
if (!chart.noFormats) {
|
if (!chart.noFormats) {
|
||||||
d3.select(this)
|
d3.select(this)
|
||||||
|
@ -384,7 +384,7 @@
|
||||||
// use the dimension name
|
// use the dimension name
|
||||||
if (!axis.hidden && (axis.position === "x" || axis.position === "y") && axis.title !== null) {
|
if (!axis.hidden && (axis.position === "x" || axis.position === "y") && axis.title !== null) {
|
||||||
axis.titleShape = this._group.append("text")
|
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
|
axis.titleShape
|
||||||
.attr("x", titleX)
|
.attr("x", titleX)
|
||||||
.attr("y", titleY)
|
.attr("y", titleY)
|
||||||
|
|
Loading…
Reference in New Issue