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

Updated General examples to maintain consistency #247

Merged
merged 16 commits into from
Oct 11, 2021
Merged

Updated General examples to maintain consistency #247

merged 16 commits into from
Oct 11, 2021

Conversation

sdadn
Copy link
Contributor

@sdadn sdadn commented Oct 9, 2021

Summary

Closes #209

Deployment Link

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

Testing

Additional Details

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

@sdadn sdadn added chore Code cleanup and maintenance 📦 terra-graphs-docs labels Oct 9, 2021
@sdadn sdadn self-assigned this Oct 9, 2021
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 9, 2021 02:55 Inactive
@@ -0,0 +1,25 @@
import Carbon from '@cerner/carbon-graphs/lib/js/carbon';
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of dataset2, can you name this something related to examples.( Probably do the same for other datasets).

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I used a generic name because it's used in multiple examples

Comment on lines 8 to 14
// const tickValues = [
// new Date(2016, 0, 1, 1, 0).toISOString(),
// new Date(2016, 0, 1, 5, 0).toISOString(),
// new Date(2016, 0, 1, 10, 0).toISOString(),
// new Date(2016, 0, 1, 15, 0).toISOString(),
// new Date(2016, 0, 1, 20, 0).toISOString(),
// ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comments here.

Comment on lines 20 to 25
const graphConfig = utils.deepClone(getGraphConfig('#xAxisAlternateLocale'));
// graphConfig.locale = Carbon.helpers.LOCALE.de_DE;
// graphConfig.axis.x.ticks = {
// values: tickValues,
// format: '%A %e %B %Y, %X',
// };
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comments.

// new Date(2016, 0, 1, 10, 0).toISOString(),
// new Date(2016, 0, 1, 15, 0).toISOString(),
// new Date(2016, 0, 1, 20, 0).toISOString(),
// ];
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove comments. Looks like there are comments in other places too, please remove all of them if not necessary.

@AshishMotanamGurunadham
Copy link
Contributor

Looks like Background color is missing in the general background color example.
image

@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 18:37 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 19:39 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 20:24 Inactive
x: {
type: Carbon.helpers.AXIS_TYPE.TIME_SERIES,
label: 'Datetime',
lowerLimit: new Date(2016, 0, 1, 1, 0).toISOString(),
Copy link
Contributor

@benbcai benbcai Oct 11, 2021

Choose a reason for hiding this comment

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

Is the intention for the lower limit to be the beginning of the day? If so should the hour in the date be 0 since it is 0-based? Same for the other examples if update is needed.

new Date(2016, 0, 1, 0, 0).toISOString()

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: 16ddba7

Copy link
Contributor

Choose a reason for hiding this comment

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

Do the other examples also need to be updated?

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 the remaining datasets here: 73c5828

@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 21:31 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 21:45 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 22:35 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 22:36 Inactive
@ryanthemanuel ryanthemanuel temporarily deployed to terra-graphs-issue-209-chbdcp1 October 11, 2021 22:38 Inactive
@sdadn sdadn merged commit cbbac29 into main Oct 11, 2021
@sdadn sdadn deleted the issue-209 branch October 11, 2021 23:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
chore Code cleanup and maintenance 📦 terra-graphs-docs
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Update General graph example datasets and reflow logic to maintain consistency
4 participants