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

MG-209 - Update Linechart to facilitate multiple line charts #242

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

ianmuchyri
Copy link
Contributor

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update
  • Dependency Update

What does this do?

Updates the line chart to provision for multiple line charts

Which issue(s) does this PR fix/relate to?

Have you included tests for your changes?

  • Yes
  • No, and this is why:

Did you document any new/modified functionality?

  • Yes
  • No, and this is why:

Notes

@codecov-commenter
Copy link

codecov-commenter commented Mar 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@1ae4a0f). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #242   +/-   ##
=======================================
  Coverage        ?   81.00%           
=======================================
  Files           ?        3           
  Lines           ?      179           
  Branches        ?        0           
=======================================
  Hits            ?      145           
  Misses          ?       18           
  Partials        ?       16           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ianmuchyri ianmuchyri force-pushed the 209-multiplelinechart branch from 6e70c79 to 2097a8b Compare March 15, 2024 11:14
@ianmuchyri ianmuchyri marked this pull request as ready for review March 15, 2024 15:06
Copy link
Contributor

@dborovcanin dborovcanin left a comment

Choose a reason for hiding this comment

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

Close button and dismiss button do not act the same. If there is a validation error and I dismiss the modal, it will appear with those errors when I again try to add a widget. Both should reset the form (including the removal of added sources).

@ianmuchyri ianmuchyri marked this pull request as draft March 18, 2024 09:11
@ianmuchyri ianmuchyri marked this pull request as ready for review March 18, 2024 13:17
<input type="color" class="form-control" name="lineColor" />
</td>
<td class="text-center">
<button type="button" class="btn btn-sm" onclick="removeRow(this)">
Copy link
Contributor

Choose a reason for hiding this comment

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

removeRow has not been defined. Change to removeLineChartRow

Signed-off-by: ianmuchyri <[email protected]>
Signed-off-by: ianmuchyri <[email protected]>
Signed-off-by: ianmuchyri <[email protected]>
Signed-off-by: ianmuchyri <[email protected]>
Signed-off-by: ianmuchyri <[email protected]>
Signed-off-by: ianmuchyri <[email protected]>
the y-axis array data is updated after to ensure
that all arrays have the same length

Signed-off-by: ianmuchyri <[email protected]>
@ianmuchyri ianmuchyri force-pushed the 209-multiplelinechart branch from 264d570 to 56f42fc Compare March 20, 2024 08:01
Copy link
Contributor

@felixgateru felixgateru left a comment

Choose a reason for hiding this comment

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

When I enter two data sources one of them disappears.
image

Copy link
Contributor

@felixgateru felixgateru left a comment

Choose a reason for hiding this comment

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

when we have 3 data sources i get this:
image

@felixgateru
Copy link
Contributor

when we have 3 data sources i get this: image

The title and series names need to be adjusted. As well as the name gap on the y axis label and the position of the x axis label.

})
});

function addLineChartRow() {
Copy link
Contributor

Choose a reason for hiding this comment

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

The rows are added but not removed on close or submit.

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.

Update Line chart widgets to fetch data from timescale reader
5 participants