Skip to content

Commit

Permalink
Charts need to have different id
Browse files Browse the repository at this point in the history
  • Loading branch information
jirkapok committed Apr 4, 2024
1 parent d763bbe commit 8f2263a
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
</div>
<div class="card-body card-minheight">
<app-calculating [show]="!profilesCalculated"></app-calculating>
<div id="diveplot" class="diveplot" [ngClass]="{
<div id="diveplotdiff" class="diveplot" [ngClass]="{
'plot-display': profilesCalculated,
'plot-hidden': !profilesCalculated
}">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import { SelectedWaypoint } from '../../shared/selectedwaypointService';
import { DiveSchedules } from '../../shared/dive.schedules';
import { ReloadDispatcher } from '../../shared/reloadDispatcher';
import { SelectedDiffWaypoint } from '../../shared/diff/selected-diff-waypoint.service';
import { ChartPlotterFactory } from '../../shared/chartPlotter';

describe('ProfileDifferenceChartComponent', () => {
let component: ProfileDifferenceChartComponent;
Expand All @@ -23,8 +22,7 @@ describe('ProfileDifferenceChartComponent', () => {
ResamplingService,
DiveSchedules,
ReloadDispatcher,
SelectedDiffWaypoint,
ChartPlotterFactory
SelectedDiffWaypoint
]
});
fixture = TestBed.createComponent(ProfileDifferenceChartComponent);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ export class ProfileDifferenceChartComponent extends Streamed implements OnInit
.wthEventLineColor('rgb(118,119,120)')
.create(() => this.profileB);

this.plotter = new ChartPlotter('diveplot', chartPlotterFactory, profileBTraces, profileATraces);
this.plotter = new ChartPlotter('diveplotdiff', chartPlotterFactory, profileBTraces, profileATraces);

this.profileComparatorService.selectionChanged$.pipe(takeUntil(this.unsubscribe$))
.subscribe(() => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ import { WayPointsService } from '../shared/waypoints.service';
import { SelectedWaypoint } from '../shared/selectedwaypointService';
import { DiveSchedules } from '../shared/dive.schedules';
import { ReloadDispatcher } from '../shared/reloadDispatcher';
import { ChartPlotterFactory } from '../shared/chartPlotter';
import { ResamplingService } from '../shared/ResamplingService';

describe('ProfileChartComponent', () => {
Expand All @@ -20,7 +19,7 @@ describe('ProfileChartComponent', () => {
WorkersFactoryCommon, ReloadDispatcher,
WayPointsService, SelectedWaypoint,
UnitConversion, DiveSchedules,
ChartPlotterFactory, ResamplingService
ResamplingService,
]
});

Expand Down

0 comments on commit 8f2263a

Please sign in to comment.