Skip to content

Commit

Permalink
fix: toggle working linechar
Browse files Browse the repository at this point in the history
  • Loading branch information
ssjagad committed Sep 30, 2023
1 parent 924a585 commit 9ea6117
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ const LineScatterChartWidgetComponent: React.FC<LineScatterChartWidget> = (widge
thresholds,
line,
symbol,
legend,
significantDigits: widgetSignificantDigits,
} = widgetToDisplay.properties;

Expand Down Expand Up @@ -200,6 +201,7 @@ const LineScatterChartWidgetComponent: React.FC<LineScatterChartWidget> = (widge
thresholds={thresholds}
significantDigits={significantDigits}
size={size}
legend={legend?.visible == true ? {} : undefined}
/>
</WidgetTile>
);
Expand Down
8 changes: 5 additions & 3 deletions packages/react-components/src/components/chart/baseChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -163,9 +163,11 @@ const BaseChart = ({ viewport, queries, size = { width: 500, height: 500 }, ...o
)}
</HotKeys>
</Resizable>
<div style={{ height, width: rightLegendWidth }}>
<Legend series={series} graphic={trendCursors} datastreams={dataStreams} />
</div>
{options.legend && (
<div style={{ height, width: rightLegendWidth }}>
<Legend series={series} graphic={trendCursors} datastreams={dataStreams} />
</div>
)}
</div>
);
};
Expand Down

0 comments on commit 9ea6117

Please sign in to comment.