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
22 changes: 12 additions & 10 deletions samples/charts/data-chart/data-legend/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import ReactDOM from 'react-dom/client';
import './index.css';

import { IgrLegendModule, IgrNumberAbbreviatorModule, IgrDataChartCoreModule, IgrDataChartScatterModule, IgrDataChartScatterCoreModule, IgrDataChartInteractivityModule, IgrDataLegendModule, IgrDataChartAnnotationModule } from 'igniteui-react-charts';
import { IgrDataLegend, IgrDataChart, IgrNumericXAxis, IgrNumericYAxis, IgrBubbleSeries, IgrSizeScale, IgrCrosshairLayer } from 'igniteui-react-charts';
import { IgrDataLegend, IgrDataChart, IgrNumericYAxis, IgrNumericXAxis, IgrBubbleSeries, IgrSizeScale, IgrCrosshairLayer } from 'igniteui-react-charts';
import { CountryDemographicAfricanItem, CountryDemographicAfrican } from './CountryDemographicAfrican';
import { CountryDemographicEuropeItem, CountryDemographicEurope } from './CountryDemographicEurope';

Expand All @@ -30,8 +30,8 @@ export default class Sample extends React.Component<any, any> {
this.chart = r;
this.setState({});
}
private xAxis: IgrNumericXAxis
private yAxis: IgrNumericYAxis
private xAxis: IgrNumericXAxis
private bubbleSeries1: IgrBubbleSeries
private _sizeScale1: IgrSizeScale | null = null;
public get sizeScale1(): IgrSizeScale {
Expand Down Expand Up @@ -80,27 +80,29 @@ export default class Sample extends React.Component<any, any> {
<div className="legend">
<IgrDataLegend
ref={this.legendRef}
target={this.chart}>
target={this.chart}
unitsText="%"
includedColumns={["BirthRate", "DeathRate"]}>
</IgrDataLegend>
</div>

<div className="container fill">
<IgrDataChart
ref={this.chartRef}>
<IgrNumericXAxis
name="xAxis"
title="Death Rate"
interval="1"
minimumValue="4"
maximumValue="16">
</IgrNumericXAxis>
<IgrNumericYAxis
name="yAxis"
title="Birth Rate"
interval="10"
minimumValue="0"
maximumValue="60">
</IgrNumericYAxis>
<IgrNumericXAxis
name="xAxis"
title="Death Rate"
interval="1"
minimumValue="4"
maximumValue="16">
</IgrNumericXAxis>
<IgrBubbleSeries
name="bubbleSeries1"
xAxisName="xAxis"
Expand Down
Loading