From 116d3de3fa3907d66c146df94b331ffaec50eedf Mon Sep 17 00:00:00 2001 From: Sonja Happ Date: Fri, 29 Jan 2021 10:05:51 +0100 Subject: [PATCH] backwards compatibility of plot legend --- src/widget/widget-plot/plot-legend.js | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/src/widget/widget-plot/plot-legend.js b/src/widget/widget-plot/plot-legend.js index 1ada30d..4dd7459 100644 --- a/src/widget/widget-plot/plot-legend.js +++ b/src/widget/widget-plot/plot-legend.js @@ -20,7 +20,7 @@ import { scaleOrdinal} from 'd3-scale'; import {schemeCategory10} from 'd3-scale-chromatic' function Legend(props){ - + const signal = props.sig; const hasScalingFactor = (signal.scalingFactor !== 1); @@ -52,10 +52,15 @@ class PlotLegend extends React.Component { return
; }