This is an automated email from the ASF dual-hosted git repository.
riemer pushed a commit to branch dev
in repository https://gitbox.apache.org/repos/asf/streampipes.git
The following commit(s) were added to refs/heads/dev by this push:
new 694b84759 [hotfix] Improve echarts import
694b84759 is described below
commit 694b84759331e68c0cd81fd36330e28cfbf0f0bd
Author: Dominik Riemer <[email protected]>
AuthorDate: Tue Jan 24 11:37:06 2023 +0100
[hotfix] Improve echarts import
---
ui/deployment/appng5.module.mst | 4 ++++
ui/src/app/data-explorer/data-explorer.module.ts | 6 ++----
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/ui/deployment/appng5.module.mst b/ui/deployment/appng5.module.mst
index d2352e3a9..5bfd3884d 100644
--- a/ui/deployment/appng5.module.mst
+++ b/ui/deployment/appng5.module.mst
@@ -30,6 +30,7 @@ import { CustomMaterialModule } from
'./CustomMaterial/custom-material.module';
import { CoreModule } from './core/core.module';
import { LoginModule } from './login/login.module';
import { HomeModule } from './home/home.module';
+import { NgxEchartsModule } from 'ngx-echarts';
import { InfoModule } from './info/info.module';
import {ProfileModule} from './profile/profile.module';
import { PipelineDetailsModule } from
'./pipeline-details/pipeline-details.module';
@@ -77,6 +78,9 @@ import * as $ from 'jquery';
PipelineDetailsModule,
ServicesModule,
ProfileModule,
+ NgxEchartsModule.forRoot({
+ echarts: () => import('echarts'),
+ }),
{{#modulesActive}}
{{{ng5_moduleName}}},
{{/modulesActive}}
diff --git a/ui/src/app/data-explorer/data-explorer.module.ts
b/ui/src/app/data-explorer/data-explorer.module.ts
index f0702a24b..27600adaf 100644
--- a/ui/src/app/data-explorer/data-explorer.module.ts
+++ b/ui/src/app/data-explorer/data-explorer.module.ts
@@ -95,13 +95,13 @@ import { GroupSelectionPanelComponent } from
'./components/designer-panel/data-s
import { WidgetDirective } from './components/widget/widget.directive';
import { CorrelationWidgetConfigComponent } from
'./components/widgets/correlation-chart/config/correlation-chart-widget-config.component';
import { TimeSelectionService } from './services/time-selection.service';
-import { NgxEchartsModule } from 'ngx-echarts';
import { TooMuchDataComponent } from
'./components/widgets/utils/too-much-data/too-much-data.component';
import { SpValueHeatmapComponent } from
'./components/widgets/distribution-chart/value-heatmap/value-heatmap.component';
import { RouterModule } from '@angular/router';
import { DataExplorerDashboardSlideViewComponent } from
'./components/widget-view/slide-view/data-explorer-dashboard-slide-view.component';
import { SharedUiModule } from '@streampipes/shared-ui';
import { DataExplorerPanelCanDeactivateGuard } from
'./data-explorer-panel.can-deactivate.guard';
+import { NgxEchartsModule } from 'ngx-echarts';
export const MY_NATIVE_FORMATS = {
fullPickerInput: {
@@ -148,9 +148,7 @@ export const MY_NATIVE_FORMATS = {
MatChipsModule,
PlatformServicesModule,
SharedUiModule,
- NgxEchartsModule.forRoot({
- echarts: () => import('echarts'),
- }),
+ NgxEchartsModule.forChild(),
RouterModule.forChild([
{
path: 'dataexplorer',