11.5.6 • Published 4 months ago

khiops-visualization v11.5.6

Weekly downloads
-
License
BSD-3-Clause-Clea...
Repository
github
Last release
4 months ago

Khiops visualization & covisualization Angular components

Khiops Visualization is a visualization plug-in of the data preparation and scoring tool Khiops. Khiops Visualization allows visualizing all analysis results in an intuitive way, providing a quick and easy interpretation of the discovered patterns.

Installation

Latest version:

npm i khiops-visualization@latest

Or specific version:

npm i khiops-visualization@11.5.5

Usage

Into you html app file:

<khiops-visualization></khiops-visualization>
<khiops-covisualization></khiops-covisualization>

Into your .ts app component:

import { Component, ElementRef, ViewChild } from '@angular/core';
import 'khiops-visualization';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  standalone: false,
  styleUrl: './app.component.scss',
})
export class AppComponent {
  jsonData = {}; // JSON data to be displayed

  @ViewChild('visualizationComponent', {
    static: false,
  })
  visualizationComponent?: ElementRef<HTMLElement>;

  @ViewChild('covisualizationComponent', {
    static: false,
  })
  covisualizationComponent?: ElementRef<HTMLElement>;

  ngOnInit(): void {
    this.visualizationComponent?.nativeElement.setConfig({
      showProjectTab: false,
      // ... see Configuration
    });
    this.visualizationComponent?.nativeElement.setDatas(jsonData);

    this.covisualizationComponent?.nativeElement.setConfig({
      showProjectTab: false,
      // ... see Configuration
    });
    this.covisualizationComponent?.nativeElement.setDatas(jsonData);
  }
}

You may have to allow CUSTOM_ELEMENTS_SCHEMA into your module:

@NgModule({
  declarations: [AppComponent],
  imports: [BrowserModule, AppRoutingModule, FormsModule],
  schemas: [CUSTOM_ELEMENTS_SCHEMA],
  bootstrap: [AppComponent],
})

Configuration

OptionTypeDescriptionDefault
showProjectTabbooleanShow or hide project's tabtrue
appSourcestringSpecify app source for metricsWEB
trackerIdstringMatomo tracker id
onFileOpenCallbackCallback when a file is open
onCopyDataCallbackCallback when datas are copied
onCopyImageCallbackCallback when screenshot is copied
onThemeChangedCallbackCallback when theme has changed
onSendEventCallbackSend custom events Event must have a message and may have additionnal datas of any type
readLocalFileCallbackCallback when a local file is loaded automatically. For security reasons, local files can not be loaded automatically without Electron.Used to load external datas at startup.This method takes a file in input and a callback when file is loaded

Datas models

VisualizationDatas & CovisualizationDatas Models interfaces can be fount here:\ VisualizationDatas\ CovisualizationDatas

License

Khiops visualization & covisualization webcomponents is available under the BSD 3-Clause Clear License.

11.5.1

7 months ago

11.5.2

6 months ago

11.5.0

8 months ago

11.5.5

4 months ago

11.5.6

4 months ago

11.5.3

5 months ago

11.5.4

5 months ago

11.4.8

10 months ago

11.4.9

9 months ago

11.4.2

1 year ago

11.2.4

1 year ago

11.4.3

1 year ago

11.4.0

1 year ago

11.3.1

1 year ago

11.2.2

1 year ago

11.4.1

1 year ago

11.2.3

1 year ago

11.1.4

1 year ago

11.4.6

12 months ago

11.4.7

12 months ago

11.4.4

1 year ago

11.4.5

12 months ago

11.2.0

1 year ago

11.3.0

1 year ago

11.2.1

1 year ago

11.1.3

1 year ago

11.1.2

1 year ago

11.1.1

1 year ago

11.0.14

1 year ago

11.1.0

1 year ago

11.0.13

1 year ago

11.0.10

1 year ago

11.0.11

1 year ago

11.0.12

1 year ago

11.0.8

1 year ago

11.0.9

1 year ago

11.0.7

2 years ago

11.0.6

2 years ago

11.0.5

2 years ago

11.0.4

2 years ago

11.0.3

2 years ago