Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fragment1.valueMemberPath = "Coal";
fragment1.title = "Coal";
const fragment2 = new IgxStackedFragmentSeriesComponent();
fragment2.valueMemberPath = "Hydro";
fragment2.title = "Hydro";
const fragment3 = new IgxStackedFragmentSeriesComponent();
fragment3.valueMemberPath = "Nuclear";
fragment3.title = "Nuclear";
const fragment4 = new IgxStackedFragmentSeriesComponent();
fragment4.valueMemberPath = "Gas";
fragment4.title = "Gas";
const fragment5 = new IgxStackedFragmentSeriesComponent();
fragment5.valueMemberPath = "Oil";
fragment5.title = "Oil";
fragments.push(fragment1);
fragments.push(fragment2);
fragments.push(fragment3);
fragments.push(fragment4);
fragments.push(fragment5);
return fragments;
}
public getFragments(): IgxStackedFragmentSeriesComponent[] {
const fragments: IgxStackedFragmentSeriesComponent[] = [];
const fragment1 = new IgxStackedFragmentSeriesComponent();
fragment1.valueMemberPath = "Coal";
fragment1.title = "Coal";
const fragment2 = new IgxStackedFragmentSeriesComponent();
fragment2.valueMemberPath = "Hydro";
fragment2.title = "Hydro";
const fragment3 = new IgxStackedFragmentSeriesComponent();
fragment3.valueMemberPath = "Nuclear";
fragment3.title = "Nuclear";
const fragment4 = new IgxStackedFragmentSeriesComponent();
fragment4.valueMemberPath = "Gas";
fragment4.title = "Gas";
const fragment5 = new IgxStackedFragmentSeriesComponent();
fragment5.valueMemberPath = "Oil";
fragment5.title = "Oil";
fragments.push(fragment1);
fragments.push(fragment2);
fragments.push(fragment3);
fragments.push(fragment4);
fragments.push(fragment5);
public getFragments(): IgxStackedFragmentSeriesComponent[] {
const fragments: IgxStackedFragmentSeriesComponent[] = [];
const fragment1 = new IgxStackedFragmentSeriesComponent();
fragment1.valueMemberPath = "Coal";
fragment1.title = "Coal";
const fragment2 = new IgxStackedFragmentSeriesComponent();
fragment2.valueMemberPath = "Hydro";
fragment2.title = "Hydro";
const fragment3 = new IgxStackedFragmentSeriesComponent();
fragment3.valueMemberPath = "Nuclear";
fragment3.title = "Nuclear";
const fragment4 = new IgxStackedFragmentSeriesComponent();
fragment4.valueMemberPath = "Gas";
fragment4.title = "Gas";
const fragment5 = new IgxStackedFragmentSeriesComponent();
fragment5.valueMemberPath = "Oil";
fragment5.title = "Oil";
fragments.push(fragment1);
public getFragments(): IgxStackedFragmentSeriesComponent[] {
const fragments: IgxStackedFragmentSeriesComponent[] = [];
const fragment1 = new IgxStackedFragmentSeriesComponent();
fragment1.valueMemberPath = "Coal";
fragment1.title = "Coal";
const fragment2 = new IgxStackedFragmentSeriesComponent();
fragment2.valueMemberPath = "Hydro";
fragment2.title = "Hydro";
const fragment3 = new IgxStackedFragmentSeriesComponent();
fragment3.valueMemberPath = "Nuclear";
fragment3.title = "Nuclear";
const fragment4 = new IgxStackedFragmentSeriesComponent();
fragment4.valueMemberPath = "Gas";
fragment4.title = "Gas";
const fragment5 = new IgxStackedFragmentSeriesComponent();
fragment5.valueMemberPath = "Oil";
fragment5.title = "Oil";
fragments.push(fragment1);
fragments.push(fragment2);
fragments.push(fragment3);
fragments.push(fragment4);
fragments.push(fragment5);
return fragments;
}
public getFragments(): IgxStackedFragmentSeriesComponent[] {
const fragments: IgxStackedFragmentSeriesComponent[] = [];
const fragment1 = new IgxStackedFragmentSeriesComponent();
fragment1.valueMemberPath = "Coal";
fragment1.title = "Coal";
const fragment2 = new IgxStackedFragmentSeriesComponent();
fragment2.valueMemberPath = "Hydro";
fragment2.title = "Hydro";
const fragment3 = new IgxStackedFragmentSeriesComponent();
fragment3.valueMemberPath = "Nuclear";
fragment3.title = "Nuclear";
const fragment4 = new IgxStackedFragmentSeriesComponent();
fragment4.valueMemberPath = "Gas";
fragment4.title = "Gas";
const fragment5 = new IgxStackedFragmentSeriesComponent();