Skip to content
Snippets Groups Projects
Commit d9a3c5f2 authored by Jose Ivan Vargas Lopez's avatar Jose Ivan Vargas Lopez
Browse files

Refactored deployment mixins

parent fdd1d59f
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -40,7 +40,6 @@
graphWidth: 600,
graphHeightOffset: 120,
margin: {},
breakpointHandler: Breakpoints.get(),
unitOfDisplay: '',
areaColorRgb: '#8fbce8',
lineColorRgb: '#1f78d1',
Loading
Loading
Loading
Loading
@@ -21,9 +21,9 @@ const mixins = {
formatDeployments() {
this.reducedDeploymentData = this.deploymentData.reduce((deploymentDataArray, deployment) => {
const time = new Date(deployment.created_at);
const xPos = Math.floor(this.xScale(time));
const xPos = Math.floor(this.timeSeries[0].timeSeriesScaleX(time));
 
time.setSeconds(this.data[0].time.getSeconds());
time.setSeconds(this.timeSeries[0].values[0].time.getSeconds());
 
if (xPos >= 0) {
deploymentDataArray.push({
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment