Basic CandleStick Chart



Following is an example of a Basic CandleStick Chart.

We have already seen the configurations used to draw a chart in Google Charts Configuration Syntax chapter. Now, let us see an example of a CandleStick Chart.

Configurations

We've used CandlestickChart class to show a basic CandleStick Chart.

type = 'CandlestickChart';

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 = 'CandlestickChart';
   data = [
      ["Mon", 20, 28, 38, 45],
      ["Tue", 31, 38, 55, 66],
      ["Wed", 50, 55, 77, 80],
      ["Thu", 77, 77, 66, 50],
      ["Fri", 68, 66, 22, 15]
   ];
   columnNames = ['Date', 'A','B','C','D'];
   options = { };
   width = 550;
   height = 400;
}

Result

Verify the result.

Basic CandleStick Chart Print
angular_googlecharts_candlestick_charts.htm
Advertisements