Closed albertlyu closed 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.
setDataSet
addDataPoint
See these lines of code: https://github.com/albertlyu/shot-charts-site/blob/master/app/views/data/_shot_heat_chart.html.erb#L30-L39
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 viaaddDataPoint
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