|
<DashboardLayoutComponent id="default_dashboard" created={this.created.bind(this)} columns={5} ref={(scope) => { this.dashboardObj = scope; }} cellSpacing={this.cellSpacing}>
<div id="one" className="e-panel" data-row="0" data-col="0" data-sizeX="1" data-sizeY="1">
<div className="e-panel-content">
<ChartComponent ref={(scope) => { this.chartObj = scope; }} height="100%" width="100%" id="charts" primaryXAxis={this.primaryxAxis}>
<Inject services={[ColumnSeries, Tooltip, LineSeries, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={this.data} xName='month' yName='sales' name='Sales'/>
</SeriesCollectionDirective>
</ChartComponent>
</div>
</div>
</DashboardLayoutComponent>
created() {
// Refresh the chart component.
this.chartObj.refresh();
}
<style>
.e-chart {
height:100%;
width:100%;
}
</style>
|
|
<div id="one" className="e-panel" data-row="0" data-col="0" data-sizeX="5" data-sizeY="2">
<div className="e-panel-container">
<div className="text-align">0</div>
</div>
</div> |
|
<DashboardLayoutComponent id="default_dashboard" created={this.created.bind(this)} columns={5} allowResizing={true} ref={(scope) => { this.dashboardObj = scope; }}
resizeStop ={this.resizeStop.bind(this)} cellSpacing={this.cellSpacing}>
<div id="one" className="e-panel" data-row="0" data-col="0" data-sizeX="1" data-sizeY="1">
<div className="e-panel-content">
<ChartComponent ref={(scope) => { this.chartObj = scope; }} height="100%" width="100%" id="charts" primaryXAxis={this.primaryxAxis}>
<Inject services={[ColumnSeries, Tooltip, LineSeries, Category]}/>
<SeriesCollectionDirective>
<SeriesDirective dataSource={this.data} xName='month' yName='sales' name='Sales'/>
</SeriesCollectionDirective>
</ChartComponent>
</div>
</div>
</DashboardLayoutComponent>
resizeStop(){
// Refresh the chart component.
this.chartObj.refresh();
}
|