This repository has been archived by the owner on May 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert "Move example data to value region test"
This reverts commit 1bff2ca.
- Loading branch information
Showing
2 changed files
with
133 additions
and
130 deletions.
There are no files selected for viewing
132 changes: 132 additions & 0 deletions
132
packages/terra-graphs-docs/src/example-datasets/dataObjects/Line/datasetRegions7.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,132 @@ | ||
import Carbon from '@cerner/carbon-graphs'; | ||
import { loadPopup } from '@cerner/terra-graphs-docs/lib/example-datasets/popup'; | ||
|
||
const data = { | ||
key: 'uid_7', | ||
label: { | ||
display: 'Data Label 7', | ||
}, | ||
shape: Carbon.helpers.SHAPES.DARK.CIRCLE, | ||
onClick: loadPopup, | ||
yAxis: 'y', | ||
values: [ | ||
{ | ||
x: new Date(2016, 0, 1, 1, 5).toISOString(), | ||
y: 5, | ||
isCritical: false, | ||
regions: [{ | ||
start: 3, | ||
end: 8, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 2, 15).toISOString(), | ||
y: 11, | ||
regions: [{ | ||
start: 4, | ||
end: 14, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 3, 15).toISOString(), | ||
y: 12, | ||
regions: [{ | ||
start: 5, | ||
end: 15, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 4, 15).toISOString(), | ||
y: 16, | ||
regions: [{ | ||
start: 10, | ||
end: 20, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 5, 15).toISOString(), | ||
y: 17, | ||
regions: [{ | ||
start: 10, | ||
end: 20, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 6, 15).toISOString(), | ||
y: 9, | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 7, 0).toISOString(), | ||
y: 11, | ||
regions: [{ | ||
start: 8, | ||
end: 15, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 8, 15).toISOString(), | ||
y: 12, | ||
regions: [{ | ||
start: 8, | ||
end: 15, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 9, 45).toISOString(), | ||
y: 16, | ||
regions: [{ | ||
start: 10, | ||
end: 20, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 12, 15).toISOString(), | ||
y: 17, | ||
regions: [{ | ||
start: 10, | ||
end: 20, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 13, 15).toISOString(), | ||
y: 28, | ||
regions: [{ | ||
start: 10, | ||
end: 20, | ||
}], | ||
isCritical: true, | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 14, 15).toISOString(), | ||
y: 12, | ||
regions: [{ | ||
start: 8, | ||
end: 15, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 19, 45).toISOString(), | ||
y: 13, | ||
regions: [{ | ||
start: 9, | ||
end: 16, | ||
}], | ||
}, | ||
{ | ||
x: new Date(2016, 0, 1, 21, 15).toISOString(), | ||
y: 14, | ||
regions: [{ | ||
start: 9, | ||
end: 16, | ||
color: Carbon.helpers.COLORS.GREY, | ||
}], | ||
}, | ||
], | ||
}; | ||
|
||
export default data; |
131 changes: 1 addition & 130 deletions
131
...ra-graphs-docs/src/terra-dev-site/test/graphs/LineGraph/Regions/Line/ValueRegion.test.jsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters