Skip to content

Commit 4d47a11

Browse files
authored
filter CSV export by selected precisions (#46)
1 parent 83da657 commit 4d47a11

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

packages/app/src/components/inference/ui/ChartDisplay.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,10 @@ export default function ChartDisplay() {
265265
}
266266
setIsLegendExpanded={setIsLegendExpanded}
267267
onExportCsv={() => {
268-
const visibleData = graph.data.filter((d) =>
269-
activeHwTypes.has(d.hwKey as string),
268+
const visibleData = graph.data.filter(
269+
(d) =>
270+
activeHwTypes.has(d.hwKey as string) &&
271+
selectedPrecisions.includes(d.precision),
270272
);
271273
const { headers, rows } = inferenceChartToCsv(
272274
visibleData,

0 commit comments

Comments
 (0)