aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html
diff options
context:
space:
mode:
Diffstat (limited to 'tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html')
-rw-r--r--tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html b/tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html
index 7acba47d5f..4a00542276 100644
--- a/tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html
+++ b/tensorflow/tensorboard/components/vz_heatmap/vz-heatmap.html
@@ -89,7 +89,7 @@ fits itself to the width of the container it is placed in.
_generatedColorScale: {
type: Object,
value: (function () {
- var retFunction = d3.scale.linear();
+ var retFunction = d3.scaleLinear();
if (this.colors) {
retFunction.range(this.colors)
}
@@ -277,7 +277,7 @@ fits itself to the width of the container it is placed in.
*/
_updateColorFunction: function () {
if (Array.isArray(this.colors) && this.colors.length) {
- this._generatedColorScale = d3.scale.linear().range(this.colors);
+ this._generatedColorScale = d3.scaleLinear().range(this.colors);
}
if (this.values) {
@@ -294,7 +294,7 @@ fits itself to the width of the container it is placed in.
}
},
_getLinearInterpolation: function (domain, range) {
- return d3.scale.linear().domain(domain).range(range);
+ return d3.scaleLinear().domain(domain).range(range);
},
/**
* Find side length of each tile in heat map by dividing current width