# Plotting a bar diagram with more than 40.000 points is very slow

**URL:** https://discourse.vtk.org/t/plotting-a-bar-diagram-with-more-than-40-000-points-is-very-slow/2889
**Category:** Support
**Created:** [March 26, 2020, 1:51pm UTC](https://discourse.vtk.org/t/plotting-a-bar-diagram-with-more-than-40-000-points-is-very-slow/2889 "2020-03-26T13:51:18Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MagnaBlandit](https://discourse.vtk.org/user_avatar/discourse.vtk.org/magnablandit/32/1536_2.png) [@MagnaBlandit](https://discourse.vtk.org/u/MagnaBlandit)
#### Post date: [March 26, 2020, 1:51pm UTC](https://discourse.vtk.org/t/plotting-a-bar-diagram-with-more-than-40-000-points-is-very-slow/2889/1 "2020-03-26T13:51:18Z")

</div>

Hello,

Iam trying to plot a 1D-Signal in a vtkChartXY. I have more than 40.000 points, which works fine with `vtkChart.LINE` and` vtkChart.POINTS`, but if I try to plot with `vtkChart.BAR` the program slows down significantly. Is there a way to speed up the plotting?

---

<div class="post-metadata">

### Author: ![Aron\_Helser](https://discourse.vtk.org/user_avatar/discourse.vtk.org/aron_helser/32/14_2.png) [@Aron\_Helser](https://discourse.vtk.org/u/Aron_Helser)
#### Post date: [March 26, 2020, 3:31pm UTC](https://discourse.vtk.org/t/plotting-a-bar-diagram-with-more-than-40-000-points-is-very-slow/2889/2 "2020-03-26T15:31:43Z")

</div>

Are you looking for a histogram? vtk has some histogram filters that will summarize the data so it can be plotted with many fewer bars.
