• Demos
    • JavaScript Charts
    • JavaScript StockCharts
  • Download
    • Download Chart
    • Download StockChart
  • Integrations
    • Front End Technology Samples
      • React Charts
      • Angular Charts
      • Vue.js Charts New!
      • jQuery Charts
      • Dashboards
    • Server Side Technology Samples
      • PHP Charts
      • Python Charts New!
      • ASP.NET MVC Charts
      • Spring MVC Charts
      • JSP Charts
  • License
  • Blog
  • Docs
    • Chart Documentation
    • StockChart Documentation
  • Support Forum
    • Chart Support
    • StockChart Support
  • My Account
  • My Account
  • KEY FEATURES
    • Chart with Index / Data Label
    • Chart with Zooming & Panning
    • Multi Series Chart
    • Chart with Multiple Axes
    • Combination Charts
    • Chart with Animation
    • Chart with Logarithmic Axis
    • Dynamic Chart
    • Chart with Data from AJAX
    • Drilldown Chart
    • Responsive Chart
    • Synchronized Charts
  • LINE CHARTS
    • Line Chart with Date-Time Axis
    • Dashed Line Chart
    • Multi Series Line Chart
    • Spline Chart
    • Multi Series Spline Chart
    • Step Line Chart
    • Multi Series Step Line Chart
  • BAR CHARTS
    • Bar Chart with Category Axis
    • Multi Series Bar Chart
    • Stacked Bar Chart
    • Stacked Bar 100% Chart
    • Stacked Bar 100% Chart with Indexlabels
  • COLUMN CHARTS
    • Column Chart with Numeric Axis
    • Multi Series Column Chart
    • Stacked Column Chart
    • Stacked Column 100% Chart
    • Stacked Column 100% Chart with Indexlabel
    • Waterfall Chart
    • Waterfall Chart with Indexlabels
    • Multi Series Waterfall Chart
  • PIE & DOUGHNUT CHARTS
    • Pie Chart with Index Labels
    • Pie Chart in Dark Theme
    • Doughnut Chart with Index Labels
    • Doughnut Chart in Dark Theme
  • AREA CHARTS
    • Area Chart with Indexlabels
    • Multi Series Area Chart
    • Spline Area Chart
    • Multi Series Spline Area Chart
    • Step Area Chart
    • Stacked Area Chart
    • Stacked Area 100% Chart
  • RANGE CHARTS
    • Range Column Chart
    • Multi Series Range Column Chart
    • Range Bar Chart
    • Multi Series Range Bar Chart
    • Range Area Chart
    • Multi Series Range Area Chart
    • Range Spline Area Chart
    • Multi Series Range Spline Area Chart
  • BUBBLE & SCATTER CHARTS
    • Bubble Chart with Indexlabels
    • Bubble Chart with 3 Dimensional Data
    • Multi Series Scatter Chart
  • FUNNEL & PYRAMID CHARTS
    • Funnel Chart with Index Labels
    • Funnel Chart without Neck
    • Pyramid Chart with Index Labels
  • FINANCIAL CHARTS
    • Candlestick Chart
    • Multi Series Candlestick Chart
    • OHLC Chart
    • OHLC Chart from JSON data
    • Box & Whisker Chart
  • COMBINATION CHARTS
    • Error Bar Chart
    • Pareto Chart
    • Range Area & Line Chart
    • Candlestick & Line Chart
    • OHLC Chart with Trend
  • DYNAMIC CHARTS
    • Dynamic / Live Line Chart
    • Dynamic / Live Column Chart
    • Dynamic / Live Multi Series Chart
  • JAVASCRIPT, REACT, VUE.JS, JQUERY
    • JavaScript Charts
    • React Charts
    • Vue.js Charts
    • jQuery Charts
  • SERVER SIDE TECHNOLOGIES
    • ASP.NET MVC Charts
    • JSP Charts
    • PHP Charts
    • Python Charts
    • Spring MVC Charts

Angular Multi Series Range Column Chart

Download Angular Chart Samples
  • Angular Chart Samples
  • JavaScript Chart Samples
  • React Chart Samples
  • Vue.js Chart Samples
  • jQuery Chart Samples
  • PHP Chart Samples
  • Python Django Chart Samples
  • ASP.NET Chart Samples
  • JSP Chart Samples
  • Spring MVC Chart Samples
  • Dashboard Samples
  • JavaScript StockChart Samples

In Angular Multi Series Range Column Chart, datapoints from different series are placed next to one another and are differentiated by their series color.

  • Component Code
  • Module Code
  • HTML Code
import { Component } from '@angular/core';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.css']
})
export class AppComponent {	
	chartOptions = {
	  theme: "dark2",
	  animationEnabled: true,
	  exportEnabled: true,
	  title:{
		text: "Temperature of New York & London",
	  },
	  axisY: {
		title: "Temperature",
		valueFormatString: "#0.##°F",
		crosshair: {
		  enabled: true,
		  valueFormatString: "#0.0°F"
		}
	  },     
	  axisX: {
		valueFormatString: "MMM",
		crosshair: {
		  enabled: true,
		  snapToDataPoint: true
		}
	  },
	  toolTip: {
		shared: true,		
	  },
	  data: [
		{
		  type: "rangeColumn",
		  bevelEnabled: true,
		  yValueFormatString: "#0.##°F",
		  name: "New York",
		  showInLegend: true,
		  dataPoints: [   
			{ x: new Date(2021, 0, 1), y: [28, 40] },
			{ x: new Date(2021, 1, 1), y: [30, 42] },
			{ x: new Date(2021, 2, 1), y: [36, 50] },
			{ x: new Date(2021, 3, 1), y: [46, 62] },
			{ x: new Date(2021, 4, 1), y: [55, 71] },
			{ x: new Date(2021, 5, 1), y: [64, 80] },
			{ x: new Date(2021, 6, 1), y: [70, 85] },
			{ x: new Date(2021, 7, 1), y: [69, 83] },
			{ x: new Date(2021, 8, 1), y: [62, 76] },
			{ x: new Date(2021, 9, 1), y: [51, 65] },
			{ x: new Date(2021, 10, 1), y: [42, 54] },
			{ x: new Date(2021, 11, 1), y: [34, 44] }
		  ]
		}, {
		  type: "rangeColumn",
		  bevelEnabled: true,
		  showInLegend: true,
		  name: "London",
		  yValueFormatString: "#0.##°F",
		  dataPoints: [   
			{ x: new Date(2021, 0, 1), y: [37, 47] },
			{ x: new Date(2021, 1, 1), y: [37, 48] },
			{ x: new Date(2021, 2, 1), y: [39, 53] },
			{ x: new Date(2021, 3, 1), y: [43, 59] },
			{ x: new Date(2021, 4, 1), y: [48, 65] },
			{ x: new Date(2021, 5, 1), y: [54, 71] },
			{ x: new Date(2021, 6, 1), y: [58, 75] },
			{ x: new Date(2021, 7, 1), y: [57, 74] },
			{ x: new Date(2021, 8, 1), y: [53, 68] },
			{ x: new Date(2021, 9, 1), y: [48, 60] },
			{ x: new Date(2021, 10, 1), y: [41, 53] },
			{ x: new Date(2021, 11, 1), y: [38, 48] }
		  ]
		}]
	}	
}                              
/* app.module.ts */
import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { AppComponent } from './app.component';

import * as CanvasJSAngularChart from '../assets/canvasjs.angular.component';
var CanvasJSChart = CanvasJSAngularChart.CanvasJSChart;

@NgModule({
  declarations: [
    AppComponent,
    CanvasJSChart
  ],
  imports: [
    BrowserModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule { }                        
<div>
    <canvasjs-chart [options]="chartOptions" [styles]="{width: '100%', height:'360px'}"></canvasjs-chart>    
</div>                        

Chart Customizations

color property can be used to change the color of each series. Shared Tooltip will be a useful feature in case of multi-series charts. Content of the tooltip can be customized by using contentFormatter.

Note   For step by step instructions, follow our Angular Integration Tutorial
© fenopix
  • About Us
  • FAQs
  • Careers
  • Privacy Policy
Server Side Technologies
  • ASP.NET MVC Charts
  • PHP Charts
  • JSP Charts
  • Spring MVC Charts
Front End Technologies
  • JavaScript Charts
  • jQuery Charts
  • React Charts
  • Angular Charts
  • JavaScript StockCharts
Contact
  • Fenopix, Inc.
  • 2093 Philadelphia Pike,
  • #5678, Claymont,
  • Delaware 19703
  • United States Of America