albertlyu / shot-charts-site

A Rails web application for visualizing NCAA men's basketball play-by-play shot location data
MIT License
3 stars 1 forks source link

Test setDataSet for heatmap.js chart instead of addDataPoint #54

Closed albertlyu closed 10 years ago

albertlyu commented 10 years ago

There should be a way to improve the heatmap chart render performance by seeding the setDataSet method with the dataset instead of starting with an empty array and inserting data points via addDataPoint method one-by-one. Let's try it here.

See these lines of code: https://github.com/albertlyu/shot-charts-site/blob/master/app/views/data/_shot_heat_chart.html.erb#L30-L39