<ej-chart id="chartcontainer" [enable3D]="true">
got this error
emplate parse errors:
Can't bind to 'enable3D' since it isn't a known property of 'ej-chart'.
|
// Add your additional code here
<div class="card-body" style="height: 300px"> <ejs-chart align="Center" id="chart-container" style="height: inherit !important"> // Add your additional code here
</ejs-chart> </div> // Add your additional code here |
|
app.component.html:
// add your additional code here
<ejs-chart align="Center" id="chart-container" width='50%' [legendSettings]="legendSettings">
<e-series-collection> <e-series [dataSource]='data1' type='Line' xName='x' yName='y' name='Sales'></e-series> </e-series-collection> </ejs-chart> // add your additional code here
app.component.ts:
// add your additional code here
public legendSettings: Object = {
visible: true, }; |
|
<ejs-accumulationchart id="container" #pie style='display:block; width: 92%' [legendSettings]="legendSettings" [tooltip]="tooltip" [title]="title" (load)='load($event)' [enableAnimation]= 'enableAnimation' [center]='center'>
<e-accumulation-series-collection> // add your additional code here
</e-accumulation-series-collection> </ejs-accumulationchart>
|
|
app.module.ts:
import { AccumulationChartAllModule, DataLabelService } from '@syncfusion/ej2-angular-charts';
// add your additional code here
@NgModule({
declarations: [ AppComponent ],
imports: [ BrowserModule, AccumulationChartAllModule],
providers: [],
bootstrap: [AppComponent]
}) app.component.html:
<ejs-accumulationchart id="container" #pie>
<e-accumulation-series-collection> <e-accumulation-series name='Browser' [dataSource]='data' xName='x' yName='y' [dataLabel]="dataLabel" >
</e-accumulation-series> </e-accumulation-series-collection> </ejs-accumulationchart>
app.component.ts:
// add your additional code here
visible: true,
position: 'Inside', name: 'text',
font: {
fontWeight: '600'
} };
// add your additional code here |