Comparing version 1.7.1 to 1.7.2
@@ -69,3 +69,3 @@ "use strict"; | ||
this.heightScale = d3.scaleLinear().rangeRound([this.H, 0]); | ||
this.widthScale.domain(this.DATA.map(function (item) { return _this.LABELFORMAT(item[_this.props.labelField]); })); | ||
this.widthScale.domain(this.DATA.map(function (item) { return item[_this.props.labelField]; })); | ||
this.heightScale.domain([0, this.max]).nice(); | ||
@@ -122,3 +122,4 @@ this.DATA = d3.stack().keys([this.props.valueField])(this.DATA)[0]; | ||
.attr("transform", "translate(" + (CONFIG.left + this.labelWidth) + "," + (this.H + CONFIG.top) + ")"); | ||
x.call(d3.axisBottom(this.widthScale).tickSize(1)); | ||
//@ts-ignore | ||
x.call(d3.axisBottom(this.widthScale).tickSize(1).tickFormat(this.LABELFORMAT)); | ||
if (_.has(this.props, 'xLabel')) { | ||
@@ -134,3 +135,4 @@ x.append('text') | ||
.attr("transform", "translate(" + (CONFIG.left + this.labelWidth) + "," + CONFIG.top + ")"); | ||
y.call(d3.axisLeft(this.heightScale).ticks(4).tickSize(1)); | ||
//@ts-ignore | ||
y.call(d3.axisLeft(this.heightScale).ticks(4).tickSize(1).tickFormat(this.FORMAT)); | ||
if (_.has(this.props, 'yLabel')) { | ||
@@ -137,0 +139,0 @@ y.append('text') |
{ | ||
"name": "vap", | ||
"version": "1.7.1", | ||
"version": "1.7.2", | ||
"description": "vap", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
351694
9045