0.0.15 • Published 6 months ago

ngx-topicmapper v0.0.15

Weekly downloads
-
License
-
Repository
-
Last release
6 months ago

ngx-topicmapper

This is a component to integrate D3 based MC-Topicmapper plugin into your Angular app.

Installation

npm install d3@7.8.5  ngx-topicmapper --save 
npm install @types/d3@7.4.2 --save-dev (For d3 types: based on D3 version)

Configuration

Ensure you import the module and the dependencies:

import { NgxTopicmapperModule } from 'ngx-topicmapper';

@NgModule({
   imports: [
       NgxTopicmapperModule,
       ...OtherModules
   ] // along with your other modules
})
export class AppModule {}

In your component:

  • Add to the html:
<lib-ngx-topicmapper id="mcGalaxychart" height="800" [treeData]="data" [loader]="boolPreloader" 
(exportClicked)="onExportClicked($event)" (legendClicked)="onlegendClicked($event)" (nodeClicked)="onNodeClicked($event)" ></lib-ngx-topicmapper> 
  • Add to the typescript:

    export class MyComponent {
      data: any = {};
      boolPreloader: boolean = false;
    
      ...
      constructor() {
      }
    
     onExportClicked() {
       console.log("Export clicked")
     }
    
     onlegendClicked() {
       console.log("Legend clicked")
     }
    
     nodeClicked(data) {
       console.log("noded clicked", data)
     }

Attributes

It can contain the following properties.

Input

OptionDefaultTypeDescription
idmcTopicMapperChartString(OPIONAL) Unique Id of the chart.
height700Number(OPIONAL) Height of the SVG (default 700px), lower heights may have overlapping issue. Width is dynamic based on parent container.
treeDataNot setObjectAs specified
loaderFalseBooleanLoader Animation when data is loading via API

Output

OptionDescription
nodeClickedWhen nodes in graph are clicked, output event will be triggered with clicked node details.
exportClickedWhen export button on Chart is clicked
legendClickedWhen legend button on Chart is clicked

Changelog

Version ngx-topicmapper 0.0.1

  • Compatabile with D3 version 7.3
  • First version with loader, data inputs.
  • Outputs: nodeClicked

Version ngx-topicmapper 0.0.4

  • Compatabile with D3 version 4.13
  • Height Input added.
  • Export, Legend click outputs added.
  • Special class for pagination nodes (class: pageNode)
  • Inline styles for Lines connecting nodes.
  • Export/Legend Ux based on mockups.

Version ngx-topicmapper 0.0.5

  • Compatabile with D3 version 4.13
  • Compatabile for smaller sceen sizes (mobile).

Version ngx-topicmapper 0.0.6

  • Compatabile with D3 version 4.13
  • Zoom control style fixes.
  • Inner container style fix "max-height:700px".
  • Font family updated to 'Lato'

Version ngx-topicmapper 0.0.8

  • Compatabile with D3 version 4.13
  • Default zoom reduced in first time mobile view.
  • Portrait landscape reload.
  • Central text allignment

Version ngx-topicmapper 0.0.9

  • Compatabile with D3 version 4.13
  • Central text count added.

Version ngx-topicmapper 0.0.10

  • Compatabile with D3 version 4.13
  • Responsive vertical allignment of zoom controls in mobile screens.

Version ngx-topicmapper 0.0.11

  • Compatabile with D3 version 7.6
  • Compatabile with Angular 12, 13 and typescript >4.5.0
  • All the other features of older topic mapper versions.

Version ngx-topicmapper 0.0.12 - 0.0.13

  • Compatabile with D3 version 7.6
  • Compatabile with Angular 10, 11 and typescript >4.2.0
  • All the other features of older topic mapper versions.

Version ngx-topicmapper 0.0.14

  • Compatabile with D3 version 7.6
  • Compatabile with Angular 14 and typescript >4.5.0
  • All the other features of older topic mapper versions.

Version ngx-topicmapper 0.0.15

  • Compatabile with D3 version 7.8.5
  • Compatabile with Angular 16 and typescript >5.1.3
  • All the other features of older topic mapper versions.
0.0.15

6 months ago

0.0.14

1 year ago

0.0.11

2 years ago

0.0.12

2 years ago

0.0.13

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago