-
Notifications
You must be signed in to change notification settings - Fork 575
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(charts): base charts now is directive
BREAKING CHANGES: - base-chart component became baseChart directive so you need to convert <base-chart...><<base-chart> to <canvas baseChart...><<canvas> and most probably wrap in <div style='display:block'>...<<div>
- Loading branch information
Showing
10 changed files
with
97 additions
and
111 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
<base-chart class="chart" | ||
<div> | ||
<div style="display: block"> | ||
<canvas baseChart | ||
[datasets]="barChartData" | ||
[labels]="barChartLabels" | ||
[options]="barChartOptions" | ||
[legend]="barChartLegend" | ||
[chartType]="barChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></base-chart> | ||
|
||
<button (click)="randomize()">Update</button> | ||
(chartClick)="chartClicked($event)"></canvas> | ||
</div> | ||
<button (click)="randomize()">Update</button> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<base-chart class="chart" | ||
[data]="doughnutChartData" | ||
[labels]="doughnutChartLabels" | ||
[chartType]="doughnutChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></base-chart> | ||
<div style="display: block"> | ||
<canvas baseChart | ||
[data]="doughnutChartData" | ||
[labels]="doughnutChartLabels" | ||
[chartType]="doughnutChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></canvas> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<base-chart class="chart" | ||
[data]="pieChartData" | ||
[labels]="pieChartLabels" | ||
[chartType]="pieChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></base-chart> | ||
<div style="display: block"> | ||
<canvas baseChart | ||
[data]="pieChartData" | ||
[labels]="pieChartLabels" | ||
[chartType]="pieChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></canvas> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,9 @@ | ||
<base-chart class="chart" | ||
[data]="polarAreaChartData" | ||
[labels]="polarAreaChartLabels" | ||
[legend]="polarAreaLegend" | ||
[chartType]="polarAreaChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></base-chart> | ||
<div style="display: block"> | ||
<canvas baseChart | ||
[data]="polarAreaChartData" | ||
[labels]="polarAreaChartLabels" | ||
[legend]="polarAreaLegend" | ||
[chartType]="polarAreaChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></canvas> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<base-chart class="chart" | ||
[datasets]="radarChartData" | ||
[labels]="radarChartLabels" | ||
[chartType]="radarChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></base-chart> | ||
<div style="display: block"> | ||
<canvas baseChart | ||
[datasets]="radarChartData" | ||
[labels]="radarChartLabels" | ||
[chartType]="radarChartType" | ||
(chartHover)="chartHovered($event)" | ||
(chartClick)="chartClicked($event)"></canvas> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters