Skip to content

Commit

Permalink
Merge pull request #387 from NordicSemiconductor/shrink-chart
Browse files Browse the repository at this point in the history
Revert in order to scale height of chart
  • Loading branch information
aadnekar authored Sep 28, 2023
2 parents 49a366c + c01414a commit 23f7090
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/features/dashboard/Chart/Chart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -193,10 +193,21 @@ export default () => {
[dispatch, traceEventFilter]
);

const sectionHeight = 22;
const sectionSeperatorHeight = 1;
const chartHeight =
sectionHeight * traceEventFilter.length +
sectionSeperatorHeight * (traceEventFilter.length - 1);

return (
<>
<ChartTop marginLeft={chart.current?.chartArea.left ?? 0} />
<div className="chart-data">
<div
className="chart-data"
style={{
height: chartHeight,
}}
>
<Scatter
ref={chart}
options={options}
Expand Down

0 comments on commit 23f7090

Please sign in to comment.