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

Feature/graphic compare bydate #2988

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from

Conversation

machimozor
Copy link

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.

@Sn0w3y
Copy link
Contributor

Sn0w3y commented Jan 24, 2025

Hello,
thanks for your PR - please remove the unneccessary Java File Changes first.

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>
Copy link
Contributor

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),
Copy link
Contributor

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;
Copy link
Contributor

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)

@machimozor
Copy link
Author

Hello, Thank you for your comments. I am trying to fix it ..

Greetings

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.

2 participants