czue / capetown-drought

Interactive dashboard for the current water crisis in Cape Town.
10 stars 4 forks source link

Consider reducing the number of data points #6

Open czue opened 6 years ago

czue commented 6 years ago

Guessing we could drop lots of them and it would look fine. This might help with performance.

nathanbegbie commented 6 years ago

Were you thinking in terms of page load time or with the actual graph rendering?

We can help page load performance by addressing https://github.com/czue/capetown-drought/issues/7 but if you like, we can also take a look at http://www.chartjs.org/docs/latest/charts/line.html#data-decimation

czue commented 6 years ago

Were you thinking in terms of page load time or with the actual graph rendering?

I guess I was thinking of both. But I think for now removing the tiny dams and using data decimation would be a great option!