File

components/logic-tree/logic-tree.component.ts

Description

Plot MFD logic tree using Plotly treemaps plot.

See https://plotly.com/javascript/treemaps/

Metadata

Index

Properties

Properties

plotData
Default value : this.service.logicTreePlotData

Logic tree plot data state

Private service
Default value : inject(AppService)
import {Component, inject} from '@angular/core';
import {NshmpPlotComponent} from '@ghsc/nshmp-lib-ng/plot';

import {AppService} from '../../services/app.service';

/**
 * Plot MFD logic tree using Plotly treemaps plot.
 *
 * @see https://plotly.com/javascript/treemaps/
 */
@Component({
  imports: [NshmpPlotComponent],
  selector: 'app-logic-tree',
  styleUrl: './logic-tree.component.scss',
  templateUrl: './logic-tree.component.html',
})
export class LogicTreeComponent {
  private service = inject(AppService);

  /** Logic tree plot data state */
  plotData = this.service.logicTreePlotData;
}
<nshmp-plot [plot]="plotData()" containerClass="" class="logic-tree" />
Legend
Html element
Component
Html element with directive

results matching ""

    No results matching ""