Skip to content

Commit

Permalink
hotfix label
Browse files Browse the repository at this point in the history
  • Loading branch information
pdgago committed Mar 15, 2015
1 parent e256831 commit 086858a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion charicharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ var p_axes = PClass.extend({
if (!this.opts.xaxis[orient].label) {return;}
this.$svg.select('.xaxis.' + orient).append('text')
.attr('class', 'label')
.attr('transform', h_getTranslate(-this.opts.margin.left, -4))
.attr('transform', h_getTranslate(-this.opts.margin.left, 0))
.attr('y', 16)
.attr('x', 0)
.attr('text-anchor', 'start')
Expand Down
2 changes: 1 addition & 1 deletion charicharts.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion demo/charicharts.js
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ var p_axes = PClass.extend({
if (!this.opts.xaxis[orient].label) {return;}
this.$svg.select('.xaxis.' + orient).append('text')
.attr('class', 'label')
.attr('transform', h_getTranslate(-this.opts.margin.left, -4))
.attr('transform', h_getTranslate(-this.opts.margin.left, 0))
.attr('y', 16)
.attr('x', 0)
.attr('text-anchor', 'start')
Expand Down
2 changes: 1 addition & 1 deletion demo/simple-chart-date.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,4 +103,4 @@
};
}

</script>
</script>
2 changes: 1 addition & 1 deletion src/parts/axes.js
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ var p_axes = PClass.extend({
if (!this.opts.xaxis[orient].label) {return;}
this.$svg.select('.xaxis.' + orient).append('text')
.attr('class', 'label')
.attr('transform', h_getTranslate(-this.opts.margin.left, -4))
.attr('transform', h_getTranslate(-this.opts.margin.left, 0))
.attr('y', 16)
.attr('x', 0)
.attr('text-anchor', 'start')
Expand Down

0 comments on commit 086858a

Please sign in to comment.