Angular Google Charts Tutorial
Angular Google Charts Resources
Selected Reading
- TreeMap Chart
- Table Chart
- Stepped Area
- Scatter Chart
- Sankey Charts
- Pie Charts
- Organization
- Maps
- Line Charts
- Histogram
- Combination
- Column Charts
- Candlestick
- Bubble Charts
- Bar Charts
- Area Charts
- Configuration Syntax
- Environment Setup
- Overview
- Home
Angular Google Charts Resources
Selected Reading
- Who is Who
- Computer Glossary
- HR Interview Questions
- Effective Resume Writing
- Questions and Answers
- UPSC IAS Exams Notes
Organization
Angular Google Charts - Organization Charts
Following is an example of a Organization Chart.
Organization chart helps in rendering a hierarchy of nodes, used to portray superior/subordinate relationships in an organization. For example, A family tree is a type of org chart. We have already seen the configurations used to draw a chart in
chapter. Now, let us see an example of a Organization Chart.Configurations
We ve used OrgChart class to show a Organization Chart.
type= OrgChart ;
Example
app.component.ts
import { Component } from @angular/core ; @Component({ selector: app-root , templateUrl: ./app.component.html , styleUrls: [ ./app.component.css ] }) export class AppComponent { title = ; type = OrgChart ; data = [ [{v: Mike , f: Mike<span style="color:red; font-style:itapc">President</span> }, , The President ], [{v: Jim , f: Jim<span style="color:red; font-style:itapc">Vice President</span> }, Mike , VP ], [ Apce , Mike , ], [ Bob , Jim , Bob Sponge ], [ Carol , Bob , ] ]; columnNames = ["Name","Manager","Tooltip"]; options = { allowHtml: true }; width = 550; height = 400; }
Result
Verify the result.
Advertisements