-
Notifications
You must be signed in to change notification settings - Fork 16
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix animation duration not consistent in TimeSeriesWidget #214
Fix animation duration not consistent in TimeSeriesWidget #214
Conversation
This pull request has been linked to Shortcut Story #188731: Animation duration is not consistent in TimeSeriesWidget. |
Pull Request Test Coverage Report for Build 1389571138
💛 - Coveralls |
currentTimeWindow[0] + msTimeWindowStep, | ||
currentTimeWindow[1] + msTimeWindowStep | ||
]; | ||
if (currentTimeWindow[1] > data[data.length - 1].name) { |
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.
@Clebal what is data[data.length - 1].name) ? it looks something strange, comparing with .name...
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.
Yes, name is the date resulted from aggregation. I used name following the same prop name that in others widgets. But... I can change it if you want.
@@ -44,7 +44,6 @@ const STEP_SIZE_RANGE_MAPPING = { | |||
* @param {string} props.stepSize - Step applied to group the data. Must be one of those defined in `GroupDateTypes` object. | |||
* @param {string[]} [props.stepSizeOptions] - Different steps that can be applied to group the data. If filled, an icon with a menu appears to change between steps. Every value must be one of those defined in `AggregationTypes` object. | |||
* @param {string} [props.chartType] - Chart used to represent the time serie. Must be one of those defined in `TIME_SERIES_CHART_TYPES` object. | |||
* @param {number} [props.duration] - Duration of the animation in milliseconds. 20s by default. |
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.
A doc update will be needed for this, @borja-munoz
…nsistent-in-timeserieswidget
Story details: https://app.shortcut.com/cartoteam/story/188731