Highcharts Demo

author(s): Torstein Hønsi

by gopinaghr

HTML

<script src="http://code.highcharts.com/highcharts.js"></script>

<div id="container" style="height: 400px"></div>

JavaScript

var chart;
			$(document).ready(function() {
				var width = $(document).width()-20;
				var height =  $(document).height()-20;
				$("#container").css("width",width);
				$("#container").css("height",height);
				chart = new Highcharts.Chart({
					chart: {
						renderTo: 'container',
						defaultSeriesType: 'column',
						zoomType: 'xy'
					},
					title: {
						text: 'Project wise Budget Estimation'
					},
					subtitle: {
						text: 'Select area to zoom.Click Reset Zoom to reset selection'
					},
					credits: {
						enabled: true,
						position: {
							align: 'right',
							x: -10,
							verticalAlign: 'bottom',
							y: -5
						},
						href: "http://www.qualiantech.com",
						text: "Qualian Technologies Pvt Ltd"
					},
					xAxis: {
						categories: ['Birla group Construction <br/>in (INR)','Marg Pushkara <br/>in (INR)','RK Apartments <br/>in (INR)','siri Apartments <br/>in (INR)','Lavasa City <br/>in (USD)','Amaron <br/>in (INR)'] 
							},
					yAxis: {
						min: 0,
						title: {
							text: 'Amount Distribution'
						}
					},
					legend: {			 
						shadow: true
					},
				    tooltip: {
				    	useHTML: true,
			            headerFormat: '<small>{point.key}</small><table>',
			            pointFormat: '<tr><td style="color: {series.color}">{series.name}:{point.y} </td>' ,
			            footerFormat: '</table>',
			            valueDecimals: 2,
				        crosshairs: [{
				            width: 1,
				            color: 'Gray'
				        }, {
				            width: 1,
				            color: 'gray'
				        }]
				    },
					plotOptions: {
					column: {
								pointPadding: 0.2,
								borderWidth: 0.5
					        },
			        cursor: 'pointer',
			        point: {
			        	events: {
			            	click: function() {
			                	location.href = this.options.url;
			                        }
			                    }
			                }
					},
				        series: [{ name: 'Capital', data:...