Skip to content

Commit

Permalink
donut to pie chart
Browse files Browse the repository at this point in the history
  • Loading branch information
NEXUS\Anthony.Giretti committed Oct 12, 2017
1 parent e74e51a commit 5df11ca
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
Expand Up @@ -7,10 +7,10 @@ declare var google: any;


@Component({
selector: 'donut-chart',
templateUrl: './donutchart.component.html'
selector: 'pie-chart',
templateUrl: './piechart.component.html'
})
export class DonutChartComponent implements OnInit {
export class PieChartComponent implements OnInit {

@Input() data: any[];
@Input() config: PieChartConfig;
Expand Down
4 changes: 2 additions & 2 deletions src/app/Dashboard/dashboard.component.html
Expand Up @@ -4,8 +4,8 @@ <h2>{{title}}</h2>
<div class="divTable">
<div class="divTableBody">
<div class="divTableRow">
<div class="divTableCell"><donut-chart [data]="data1" [config]="config1" [elementId]="elementId1"></donut-chart></div>
<div class="divTableCell"><donut-chart [data]="data2" [config]="config2" [elementId]="elementId2"></donut-chart></div>
<div class="divTableCell"><pie-chart [data]="data1" [config]="config1" [elementId]="elementId1"></pie-chart></div>
<div class="divTableCell"><pie-chart [data]="data2" [config]="config2" [elementId]="elementId2"></pie-chart></div>
</div>
</div>
</div>
4 changes: 2 additions & 2 deletions src/app/app.module.ts
Expand Up @@ -5,19 +5,19 @@ import { BrowserModule } from '@angular/platform-browser';
import { ComboChartComponent } from './Dashboard/Charts/combochart.component'
import { DashboardComponent } from './Dashboard/dashboard.component';
import { DataTableModule } from 'angular-4-data-table';
import {DonutChartComponent} from './Dashboard/Charts/donutchart.component'
import { FormsModule } from '@angular/forms';
import { GoogleComboChartService } from './Services/google-combo-chart.service';
import { GooglePieChartService } from './Services/google-pie-chart.service';
import { NgModule } from '@angular/core';
import { PieChartComponent } from './Dashboard/Charts/piechart.component'

@NgModule({
declarations: [
AppComponent,
DashboardComponent,
AdminComponent,
ComboChartComponent,
DonutChartComponent
PieChartComponent
],
imports: [
BrowserModule,
Expand Down

0 comments on commit 5df11ca

Please sign in to comment.