Skip to content
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

POC: Multiple line 409 #67

Open
wants to merge 30 commits into
base: master
Choose a base branch
from
Open

POC: Multiple line 409 #67

wants to merge 30 commits into from

Conversation

lovedeep92
Copy link
Collaborator

JIRA:
See ticket here - https://jira.rax.io/browse/MNRVA-409

Description:

  1. Always give one line of the graph the default line color value if none is supplied.
  2. Check if there are multiple color values and assign to multiple lines - if no multiple lines ignore.

Screenshots:

multiline_formatting.gif.zip

@@ -9,12 +9,12 @@ GEM
eventmachine (>= 0.12.9)
http_parser.rb (~> 0.6.0)
eventmachine (1.2.7)
ffi (1.12.2)
ffi (1.13.1)
Copy link
Contributor

@pras7430 pras7430 Jul 6, 2020

Choose a reason for hiding this comment

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

hey, we have exclude the gemlock file.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

done !

connectedCallback() {
this.innerHTML = `<div style="height: 400px,width:400px" id="container"></div>`;
var container = document.querySelector(`#container`);
/*if (this.dataset.lineColor.indexOf(',') > -1) {
Copy link
Contributor

Choose a reason for hiding this comment

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

we can remove it if it is not related to future work

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yup not needed .. removed !

datapoints.forEach(e => {
arr.push([new Date(e.time).getTime(), e.value])
})
return {
Copy link
Contributor

Choose a reason for hiding this comment

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

hey, we can make a separate function and then we can assign the color

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

yes.. Created function and add logic inside of that.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

its done !

@FarajiA FarajiA changed the title Multiple line 409 POC: Multiple line 409 May 11, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants