<commit_before>import { Injectable, Type, ComponentFactoryResolver } from '@angular/core';
import {
  PieChartComponent, AdvancedPieChartComponent, BarChartComponent, ForceDirectedGraphComponent,
  GaugeChartComponent, HierarchicalEdgeBundlingComponent, LineChartComponent, DendogramComponent,
  NgGraphComponent, TreemapChartComponent, ZoomableTreemapChartComponent, PieGridChartComponent,
  BubbleChartComponent, SunburstChartComponent, WordCloudComponent
} from 'app/charts';
import { ImageComponent } from '../components/slides-presentation/slide-types/';

@Injectable()
export class ChartsService {
  private listWidget;

  constructor(private _resolver: ComponentFactoryResolver) {
    // this.listWidget = Array.from(this._resolver['_factories'].keys());

    this.listWidget = new Map<string, Type<any>>([['PieChartComponent', PieChartComponent],
      ['AdvancedPieChartComponent', AdvancedPieChartComponent], ['BarChartComponent', BarChartComponent],
      ['ForceDirectedGraphComponent', ForceDirectedGraphComponent], ['GaugeChartComponent', GaugeChartComponent],
      ['HierarchicalEdgeBundlingComponent', HierarchicalEdgeBundlingComponent], ['LineChartComponent', LineChartComponent],
      ['PieGridChartComponent', PieGridChartComponent], ['DendogramComponent', DendogramComponent],
      ['NgGraphComponent', NgGraphComponent], ['ImageComponent', ImageComponent], ['TreemapChartComponent', TreemapChartComponent],
      ['ZoomableTreemapChartComponent', ZoomableTreemapChartComponent], ['BubbleChartComponent', BubbleChartComponent],
      ['SunburstChartComponent', SunburstChartComponent], ['WordCloudComponent', WordCloudComponent]
    ]);
  }

  getChartType(widgetType: string): Type<any> {
    const cmpType = <Type<any>>this.listWidget.get(widgetType);
    return cmpType;
    // return <Type<any>>this.listWidget.find((x: any) => x.name === widgetType);

  }


}<commit_msg>{#Chart} Area Chart is KO in presentation mode<commit_after>import { Injectable, Type, ComponentFactoryResolver } from '@angular/core';
import {
  PieChartComponent, AdvancedPieChartComponent, BarChartComponent, ForceDirectedGraphComponent,
  GaugeChartComponent, HierarchicalEdgeBundlingComponent, LineChartComponent, DendogramComponent,
  NgGraphComponent, TreemapChartComponent, ZoomableTreemapChartComponent, PieGridChartComponent,
  BubbleChartComponent, SunburstChartComponent, WordCloudComponent,AreaChartComponent
} from 'app/charts';
import { ImageComponent } from '../components/slides-presentation/slide-types/';

@Injectable()
export class ChartsService {
  private listWidget;

  constructor(private _resolver: ComponentFactoryResolver) {
    // this.listWidget = Array.from(this._resolver['_factories'].keys());

    this.listWidget = new Map<string, Type<any>>([['PieChartComponent', PieChartComponent],
      ['AdvancedPieChartComponent', AdvancedPieChartComponent], ['BarChartComponent', BarChartComponent],
      ['ForceDirectedGraphComponent', ForceDirectedGraphComponent], ['GaugeChartComponent', GaugeChartComponent],
      ['HierarchicalEdgeBundlingComponent', HierarchicalEdgeBundlingComponent], ['LineChartComponent', LineChartComponent],
      ['PieGridChartComponent', PieGridChartComponent], ['DendogramComponent', DendogramComponent],
      ['NgGraphComponent', NgGraphComponent], ['ImageComponent', ImageComponent], ['TreemapChartComponent', TreemapChartComponent],
      ['ZoomableTreemapChartComponent', ZoomableTreemapChartComponent], ['BubbleChartComponent', BubbleChartComponent],
      ['SunburstChartComponent', SunburstChartComponent],['AreaChartComponent', AreaChartComponent],['WordCloudComponent', WordCloudComponent]
    ]);
  }

  getChartType(widgetType: string): Type<any> {
    const cmpType = <Type<any>>this.listWidget.get(widgetType);
    return cmpType;
    // return <Type<any>>this.listWidget.find((x: any) => x.name === widgetType);

  }


}
{'fraction_non_alphanumeric': 0.11459403905447071, 'fraction_numerical': 0.0, 'mean_word_length': 7.651111111111111, 'pattern_counts': {'":': 0, '<': 17, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6261389', 'n_tokens_mistral': 1072, 'n_tokens_neox': 1035, 'n_words': 181}