Skip to content

Commit

Permalink
Revert in order to scale height of chart
Browse files Browse the repository at this point in the history
Should scale the chart area with regards to how many packet types that
are being displayed.
  • Loading branch information
aadnekar committed Sep 28, 2023
1 parent f70a34c commit c01414a
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 c01414a

Please sign in to comment.