Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 11 additions & 9 deletions samples/charts/data-chart/data-legend/src/app.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,15 @@
<igx-data-legend
name="legend"
#legend
[target]="chart">
[target]="chart"
unitsText="%"
includedColumns="BirthRate, DeathRate">
</igx-data-legend>
</div>
<div class="container fill">
<igx-data-chart
name="chart"
#chart>
<igx-numeric-x-axis
name="xAxis"
#xAxis
title="Death Rate"
interval="1"
minimumValue="4"
maximumValue="16">
</igx-numeric-x-axis>
<igx-numeric-y-axis
name="yAxis"
#yAxis
Expand All @@ -29,6 +23,14 @@
minimumValue="0"
maximumValue="60">
</igx-numeric-y-axis>
<igx-numeric-x-axis
name="xAxis"
#xAxis
title="Death Rate"
interval="1"
minimumValue="4"
maximumValue="16">
</igx-numeric-x-axis>
<igx-bubble-series
name="bubbleSeries1"
#bubbleSeries1
Expand Down
6 changes: 3 additions & 3 deletions samples/charts/data-chart/data-legend/src/app.component.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core';
import { CountryDemographicAfricanItem, CountryDemographicAfrican } from './CountryDemographicAfrican';
import { CountryDemographicEuropeItem, CountryDemographicEurope } from './CountryDemographicEurope';
import { IgxDataLegendComponent, IgxDataChartComponent, IgxNumericXAxisComponent, IgxNumericYAxisComponent, IgxBubbleSeriesComponent, IgxSizeScaleComponent, IgxCrosshairLayerComponent } from 'igniteui-angular-charts';
import { IgxDataLegendComponent, IgxDataChartComponent, IgxNumericYAxisComponent, IgxNumericXAxisComponent, IgxBubbleSeriesComponent, IgxSizeScaleComponent, IgxCrosshairLayerComponent } from 'igniteui-angular-charts';

@Component({
selector: "app-root",
Expand All @@ -17,10 +17,10 @@ export class AppComponent implements AfterViewInit
private legend: IgxDataLegendComponent
@ViewChild("chart", { static: true } )
private chart: IgxDataChartComponent
@ViewChild("xAxis", { static: true } )
private xAxis: IgxNumericXAxisComponent
@ViewChild("yAxis", { static: true } )
private yAxis: IgxNumericYAxisComponent
@ViewChild("xAxis", { static: true } )
private xAxis: IgxNumericXAxisComponent
@ViewChild("bubbleSeries1", { static: true } )
private bubbleSeries1: IgxBubbleSeriesComponent
private _sizeScale1: IgxSizeScaleComponent | null = null;
Expand Down