Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,11 @@ import { rgbToHex } from '../../../../assets/wise5/common/color/color';
import { trimToLength } from '../../../../assets/wise5/common/string/string';

@Component({
selector: 'milestone-report-graph',
styleUrls: ['./milestone-report-graph.component.scss'],
template: '<highcharts-chart [Highcharts]="Highcharts" [options]="chartConfig"></highcharts-chart>',
standalone: false
selector: 'milestone-report-graph',
styleUrls: ['./milestone-report-graph.component.scss'],
template:
'<highcharts-chart [Highcharts]="Highcharts" [options]="chartConfig" (chartInstance)="onLoad($event)"></highcharts-chart>',
standalone: false
})
export class MilestoneReportGraphComponent implements OnInit {
DEFAULT_COLOR = 'rgb(194, 24, 91)';
Expand Down Expand Up @@ -136,4 +137,10 @@ export class MilestoneReportGraphComponent implements OnInit {
}
return seriesData;
}

protected onLoad(chart: Highcharts.Chart): void {
setTimeout(() => {
chart.reflow();
}, 0);
}
}
2 changes: 1 addition & 1 deletion src/messages.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -9178,7 +9178,7 @@ Click &quot;Cancel&quot; to keep the invalid JSON open so you can fix it.</sourc
<source>Teams</source>
<context-group purpose="location">
<context context-type="sourcefile">src/app/teacher/milestone/milestone-report-graph/milestone-report-graph.component.ts</context>
<context context-type="linenumber">71</context>
<context context-type="linenumber">72</context>
</context-group>
</trans-unit>
<trans-unit id="819750642673322683" datatype="html">
Expand Down