Skip to content

Commit

Permalink
refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
kjgarza committed Nov 4, 2021
1 parent f1e8a45 commit ac353b0
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/components/VerticalBarChart/VerticalBarChart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -119,9 +119,6 @@ const VerticalBarChart: React.FunctionComponent<Props> = ({
}
})

// more than ten items would be too much
const newdata = mydata.slice(0, 10)

return (
<div className="panel panel-transparent">
<div className="panel-body production-chart">
Expand All @@ -131,7 +128,7 @@ const VerticalBarChart: React.FunctionComponent<Props> = ({
<VegaLite
renderer="svg"
spec={spec}
data={{ table: newdata }}
data={{ table: mydata.slice(0, 10) }}
actions={actions}
/>
</div>
Expand Down

0 comments on commit ac353b0

Please sign in to comment.