Skip to content

Commit

Permalink
Fixed #131
Browse files Browse the repository at this point in the history
  • Loading branch information
Çağatay Çivici committed Mar 21, 2016
1 parent e0a5f93 commit ab4fc9e
Show file tree
Hide file tree
Showing 6 changed files with 212 additions and 0 deletions.
36 changes: 36 additions & 0 deletions components/chart/barchart/barchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,43 @@ export class BarChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Bar(this.value, {
animation: this.animation,
animationSteps: this.animationSteps,
animationEasing: this.animationEasing,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleShowLabels: this.scaleShowLabels,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleBeginAtZero: this.scaleBeginAtZero,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
scaleShowGridLines: this.scaleShowGridLines,
scaleGridLineColor: this.scaleGridLineColor,
scaleGridLineWidth: this.scaleGridLineWidth,
Expand Down
35 changes: 35 additions & 0 deletions components/chart/doughnutchart/doughnutchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,41 @@ export class DoughnutChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Pie(this.value, {
animation: this.animation,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleShowLabels: this.scaleShowLabels,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleBeginAtZero: this.scaleBeginAtZero,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
segmentShowStroke: this.segmentShowStroke,
segmentStrokeColor: this.segmentStrokeColor,
segmentStrokeWidth: this.segmentStrokeWidth,
Expand Down
37 changes: 37 additions & 0 deletions components/chart/linechart/linechart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,43 @@ export class LineChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Line(this.value, {
animation: this.animation,
animationSteps: this.animationSteps,
animationEasing: this.animationEasing,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleShowLabels: this.scaleShowLabels,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleBeginAtZero: this.scaleBeginAtZero,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
scaleShowGridLines: this.scaleShowGridLines,
scaleGridLineColor: this.scaleGridLineColor,
scaleGridLineWidth: this.scaleGridLineWidth,
Expand Down
35 changes: 35 additions & 0 deletions components/chart/piechart/piechart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,41 @@ export class PieChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Pie(this.value, {
animation: this.animation,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleShowLabels: this.scaleShowLabels,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleBeginAtZero: this.scaleBeginAtZero,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
segmentShowStroke: this.segmentShowStroke,
segmentStrokeColor: this.segmentStrokeColor,
segmentStrokeWidth: this.segmentStrokeWidth,
Expand Down
34 changes: 34 additions & 0 deletions components/chart/polarareachart/polarareachart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,40 @@ export class PolarAreaChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).PolarArea(this.value, {
animation: this.animation,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleShowLabels: this.scaleShowLabels,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
scaleShowLabelBackdrop: this.scaleShowLabelBackdrop,
scaleBackdropColor: this.scaleBackdropColor,
scaleBeginAtZero: this.scaleBeginAtZero,
Expand Down
35 changes: 35 additions & 0 deletions components/chart/radarchart/radarchart.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,41 @@ export class RadarChart implements AfterViewInit, OnDestroy, DoCheck {
initChart() {
if(this.value) {
this.chart = new Chart(this.el.nativeElement.children[0].getContext("2d")).Radar(this.value, {
animation: this.animation,
animationSteps: this.animationSteps,
animationEasing: this.animationEasing,
showScale: this.showScale,
scaleOverride: this.scaleOverride,
scaleSteps: this.scaleSteps,
scaleStepWidth: this.scaleStepWidth,
scaleStartValue: this.scaleStartValue,
scaleLineColor: this.scaleLineColor,
scaleLineWidth: this.scaleLineWidth,
scaleLabel: this.scaleLabel,
scaleIntegersOnly: this.scaleIntegersOnly,
scaleFontFamily: this.scaleFontFamily,
scaleFontSize: this.scaleFontSize,
scaleFontStyle: this.scaleFontStyle,
scaleFontColor: this.scaleFontColor,
responsive: this.responsive,
maintainAspectRatio: this.maintainAspectRatio,
showTooltips: this.showTooltips,
tooltipFillColor: this.tooltipFillColor,
tooltipFontFamily: this.tooltipFontFamily,
tooltipFontSize: this.tooltipFontSize,
tooltipFontStyle: this.tooltipFontStyle,
tooltipFontColor: this.tooltipFontColor,
tooltipTitleFontFamily: this.tooltipTitleFontFamily,
tooltipTitleFontSize: this.tooltipTitleFontSize,
tooltipTitleFontStyle: this.tooltipTitleFontStyle,
tooltipTitleFontColor: this.tooltipTitleFontColor,
tooltipYPadding: this.tooltipYPadding,
tooltipXPadding: this.tooltipXPadding,
tooltipCaretSize: this.tooltipCaretSize,
tooltipCornerRadius: this.tooltipCornerRadius,
tooltipXOffset: this.tooltipXOffset,
tooltipTemplate: this.tooltipTemplate,
multiTooltipTemplate: this.multiTooltipTemplate,
scaleShowLine: this.scaleShowLine,
angleShowLineOut: this.angleShowLineOut,
scaleShowLabels: this.scaleShowLabels,
Expand Down

0 comments on commit ab4fc9e

Please sign in to comment.