diff --git a/package.json b/package.json index e16246a..6b64762 100644 --- a/package.json +++ b/package.json @@ -11,7 +11,7 @@ "author": "CorpGlory", "license": "Apache-2.0", "dependencies": { - "@chartwerk/core": "^0.5.0-beta" + "@chartwerk/core": "^0.5.0-beta2" }, "devDependencies": { "css-loader": "^3.4.2", diff --git a/src/index.ts b/src/index.ts index b38ab10..2cdd5aa 100644 --- a/src/index.ts +++ b/src/index.ts @@ -283,7 +283,7 @@ export class ChartwerkGaugePod extends ChartwerkPod { - return this.d3.scaleLinear() + return d3.scaleLinear() .domain([this.options.minValue, this.options.maxValue]) .range([(-1 * Math.PI) / 2 - CIRCLES_ROUNDING, Math.PI / 2 + CIRCLES_ROUNDING]); } @@ -307,7 +307,7 @@ export class ChartwerkGaugePod extends ChartwerkPod this.onDrag(idx)) .on('end', () => this.onDragEnd(idx)); @@ -326,7 +326,7 @@ export class ChartwerkGaugePod extends ChartwerkPod