@geoblocks/d3-helper
Advanced tools
Comparing version 1.0.7 to 1.0.8
@@ -37,2 +37,7 @@ /** | ||
/** | ||
* Update the size of the svg element. | ||
* The element svg must be redrawn after. | ||
*/ | ||
protected updateSize_(element: Element): void; | ||
/** | ||
* Remove de SVG. | ||
@@ -39,0 +44,0 @@ */ |
@@ -37,2 +37,10 @@ import { select as d3Select } from 'd3-selection'; | ||
/** | ||
* Update the size of the svg element. | ||
* The element svg must be redrawn after. | ||
*/ | ||
updateSize_(element) { | ||
this.width_ = element.offsetWidth; | ||
this.height_ = element.offsetHeight; | ||
} | ||
/** | ||
* Remove de SVG. | ||
@@ -39,0 +47,0 @@ */ |
@@ -31,2 +31,6 @@ import { BaseD3ChartSVG, Margins } from './base-d3-chart-svg'; | ||
/** | ||
* Color For axis label. | ||
*/ | ||
color?: number[]; | ||
/** | ||
* Axis static label. | ||
@@ -114,7 +118,2 @@ * If not set, the chart may try to use the axis column as label. | ||
/** | ||
* Update the size of the svg element. | ||
* The element svg must be redrawn after. | ||
*/ | ||
protected updateSize_(element: Element): void; | ||
/** | ||
* Reset the chart. | ||
@@ -121,0 +120,0 @@ * Remove, update the size, and draw the SVG again. |
@@ -66,10 +66,2 @@ import { min as d3Min, max as d3Max } from 'd3-array'; | ||
/** | ||
* Update the size of the svg element. | ||
* The element svg must be redrawn after. | ||
*/ | ||
updateSize_(element) { | ||
this.width_ = element.offsetWidth; | ||
this.height_ = element.offsetHeight; | ||
} | ||
/** | ||
* Reset the chart. | ||
@@ -124,3 +116,3 @@ * Remove, update the size, and draw the SVG again. | ||
if (!this.config_.xAxis.hideAxis) { | ||
this.drawXAxis_(this.color_, data); | ||
this.drawXAxis_(axisConfig.color || this.color_, data); | ||
} | ||
@@ -143,3 +135,3 @@ } | ||
if (!this.config_.yAxis.hideAxis) { | ||
this.drawYAxis_(this.color_, data); | ||
this.drawYAxis_(axisConfig.color || this.color_, data); | ||
} | ||
@@ -161,3 +153,3 @@ } | ||
this.oppositeYScale_ = this.getScale_(this.oppositeYData_, axisType, [drawableHeight, 0]); | ||
this.drawOppositeYAxis_(this.color_, data); | ||
this.drawOppositeYAxis_(axisConfig.color || this.color_, data); | ||
} | ||
@@ -164,0 +156,0 @@ /** |
{ | ||
"name": "@geoblocks/d3-helper", | ||
"version": "1.0.7", | ||
"version": "1.0.8", | ||
"description": "d3 helper classes", | ||
@@ -5,0 +5,0 @@ "license": "bsd", |
@@ -56,4 +56,3 @@ # d3-helper | ||
* More examples. | ||
* Tooltips helpers for data. | ||
* Tests. |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
44728
721
58
15
0
0
0