diff --git a/projects/fhi-angular-highcharts/CHANGELOG.md b/projects/fhi-angular-highcharts/CHANGELOG.md index bbbc0073..b524f5c5 100644 --- a/projects/fhi-angular-highcharts/CHANGELOG.md +++ b/projects/fhi-angular-highcharts/CHANGELOG.md @@ -4,6 +4,7 @@ * :tada: **Enhancement** Add option `categoryAxis` to `FhiDiagramOptions`, and add support for setting the category axis title [(#763)](https://github.com/folkehelseinstituttet/Fhi.Frontend.Demo/pull/763) * :tada: **Enhancement** Update qualitative color series [(#771)](https://github.com/folkehelseinstituttet/Fhi.Frontend.Demo/pull/771) +* :tada: **Enhancement** Use cloneDeep() to make diagramOptions immutable [(#765)](https://github.com/folkehelseinstituttet/Fhi.Frontend.Demo/pull/765) ## 5.2.0 diff --git a/projects/fhi-angular-highcharts/src/lib/fhi-angular-highcharts.component.html b/projects/fhi-angular-highcharts/src/lib/fhi-angular-highcharts.component.html index a9f0f5be..2527f806 100644 --- a/projects/fhi-angular-highcharts/src/lib/fhi-angular-highcharts.component.html +++ b/projects/fhi-angular-highcharts/src/lib/fhi-angular-highcharts.component.html @@ -1,8 +1,8 @@ -
-

{{ diagramOptions.title }}

+
+

{{ diagramOptionsInternal.title }}

- @if (diagramOptions.description) { -

{{ diagramOptions.description }}

+ @if (diagramOptionsInternal.description) { +

{{ diagramOptionsInternal.description }}

} @if (showDiagramTypeNav || showDownloadButton || showFullScreenButton || showMetadataButton) { @@ -78,7 +78,7 @@

{{ diagramOptions.title }}

@@ -86,8 +86,8 @@

{{ diagramOptions.title }}

Fullskjerm
- @if (diagramOptions.description) { -

{{ diagramOptions.description }}

+ @if (diagramOptionsInternal.description) { +

{{ diagramOptionsInternal.description }}

}
@@ -170,30 +170,32 @@

{{ diagramOptions.title }}