mirror of
https://github.com/valitydev/redash.git
synced 2024-11-07 17:38:54 +00:00
Use more descriptive method name
Signed-off-by: John Wu <webmaster@leapoahead.com>
This commit is contained in:
parent
d50af7dec9
commit
2e78ef0128
@ -191,7 +191,7 @@
|
||||
/**
|
||||
* Helper function to add a point into a series, also checks whether the point is within dateRange
|
||||
*/
|
||||
QueryResult.prototype._addPointToSeriesChecked = function (point, seriesCollection, seriesName, dateRange) {
|
||||
QueryResult.prototype._addPointToSeriesIfInDateRange = function (point, seriesCollection, seriesName, dateRange) {
|
||||
if (point.x.isBefore(dateRange.min) || point.x.isAfter(dateRange.max)) {
|
||||
// if the point's date isn't within dateRange, then we will not add this point to series
|
||||
return;
|
||||
@ -262,7 +262,7 @@
|
||||
});
|
||||
} else if (dateRange && moment.isMoment(point.x)) {
|
||||
// Check whether the x axis is of type datetime and whether the dateRange feature is enabled (by checking if dateRange object is provided). If so, we will want to filter points based on dateRange set.
|
||||
this._addPointToSeriesChecked(point, series, seriesName, dateRange);
|
||||
this._addPointToSeriesIfInDateRange(point, series, seriesName, dateRange);
|
||||
}
|
||||
else {
|
||||
this._addPointToSeries(point, series, seriesName);
|
||||
|
Loading…
Reference in New Issue
Block a user