Skip to content
This repository has been archived by the owner on May 24, 2024. It is now read-only.

Updated Gantt datasets and examples to maintain consistency. #229

Merged
merged 4 commits into from
Sep 10, 2021

Conversation

AshishMotanamGurunadham
Copy link
Contributor

Summary

  • Updated Gantt chart config objects, datasets, and reflow logic in examples to maintain consistency.

Closes #208

JIRA LINK: https://jira2.cerner.com/browse/UXPLATFORM-5480

Deployment Link

https://terra-graphs-deployed-pr-#.herokuapp.com/

Thank you for contributing to Terra.
@cerner/terra
@cerner/carbon

@mjhenkes mjhenkes temporarily deployed to terra-graphs-issue-208-sdutxqo September 3, 2021 19:25 Inactive
@@ -0,0 +1,18 @@
import {
loadPopup,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: remove the comma to make it one line

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here.

} from '@cerner/terra-graphs-docs/lib/example-datasets/popup';

const barTypesDataset2 = {
key: 'track 1',
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: keep key and object name similar

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@sdadn in Gantt I guess track 1 sounds more meaningful than barTypesDataset.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

at the very least, keep the numbers the same

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually, here track starts from 0 so the number looks a bit different.

Comment on lines 28 to 68
const dyanmicData = {
actions: [
{
key: 'uid_action_1',
values: [
new Date(2016, 0, 1, 7, 15).toISOString(),
new Date(2016, 0, 1, 8, 15).toISOString(),
],
},
{
key: 'uid_action_2',
values: [new Date(2016, 0, 1, 9, 15).toISOString()],
},
],
tasks: [
{
key: 'task10',
startDate: new Date(2016, 0, 1, 0).toISOString(),
endDate: new Date(2016, 0, 1, 13).toISOString(),
},
{
key: 'task11',
startDate: new Date(2016, 0, 1, 15).toISOString(),
endDate: new Date(2016, 0, 1, 20).toISOString(),
},
],
events: [
{
key: 'uid_event_4',
shape: scheduled,
values: [new Date(2016, 0, 1, 2, 15).toISOString()],
},
],
activities: [
{
key: 'activity5',
startDate: new Date(2016, 0, 1, 3).toISOString(),
endDate: new Date(2016, 0, 1, 6).toISOString(),
},
],
};
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since we're only using the properties of dynamicData and not the object, it would be better to break these into separate variables for actions, tasks, events and activities.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed here.

@mjhenkes mjhenkes temporarily deployed to terra-graphs-issue-208-sdutxqo September 8, 2021 17:40 Inactive
@mjhenkes mjhenkes temporarily deployed to terra-graphs-issue-208-sdutxqo September 8, 2021 23:11 Inactive
@ryanthemanuel ryanthemanuel merged commit 6295daf into main Sep 10, 2021
@ryanthemanuel ryanthemanuel deleted the issue-208 branch September 10, 2021 15:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update Gantt Chart example datasets and reflow logic to maintain consistency
4 participants