-
Notifications
You must be signed in to change notification settings - Fork 83
Conversation
|
||
if (!data.length) { | ||
$div.find('p').text('No data yet.'); | ||
return; | ||
} | ||
stats = data; | ||
|
||
// calculate the vaxis max. | ||
for (i = 0; i < stats.length - smoothing; i++) { | ||
getOnsetDataTable(i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah now 'getOnsetDataTable' creates a bunch of new google.visualization.DataTable() to be immediately thrown away (to populate the global variable). This is getting messy.
If we want to do this maybe we should cache the results so we don't need to rebuild these as we slide the slider.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
added caches - redraws are faster now!
/hold |
/hold cancel |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mikehelmick, whaught The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
Proposed Changes
Release Note