-
Notifications
You must be signed in to change notification settings - Fork 423
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
Feature/graphic compare bydate #2988
base: develop
Are you sure you want to change the base?
Feature/graphic compare bydate #2988
Conversation
Hello, Also make it work before you provide a PR please as right now it does not even compile correctly. Greetings |
<!-- Form to select periods --> | ||
<form (ngSubmit)="onComparePeriods()"> | ||
<div class="form-group"> | ||
<label for="period1">Période 1:</label> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed Language needs to be changed to translate.
} | ||
|
||
Promise.all([ | ||
this.service.getDataForDate(this.date1), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
getDataForDate does not exist on the branch
this.service.getDataForDate(this.date2), | ||
]).then(([data1, data2]) => { | ||
const comparisonData = this.getComparisonChartData(this.date1, this.date2, this.period1, this.period2); | ||
this.datasets = comparisonData.output; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Type '(data: ChannelData, labels?: (string | Date)[]) => DisplayValue[]' is not assignable to type 'ChartDataset<keyof ChartTypeRegistry, (number | Point | [number, number] | BubbleDataPoint)[]>[]'.ts(2322)
Hello, Thank you for your comments. I am trying to fix it .. Greetings |
This Pull Request addresses issue #2907. In the Chart component, I propose a solution to compare dates between two periods.
Changes Made
Added logic to allow comparison of dates between two specified periods within the Chart component.