FusionCharts - Column 2D Chart in JavaScript
Created using FusionCharts Suite XT - www.fusioncharts.com
by sanjuktamukherjee
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.charts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!--
A simple Column 2D chart showing monthly revenue of Harry's SuperMart for last year.
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function () {
var revenueChart = new FusionCharts({
type: 'rajasthan',
renderAt: 'chart-container',
width: '500',
height: '300',
dataFormat: 'json',
dataSource: {
"chart": {
"bordercolor": "005879",
"setfillhovercolor": "#cccccc",
"fillcolor": "DDDDDD",
"showlegend": "1",
"legendposition": "BOTTOM",
"mapleftmargin": "0",
"maptopmargin": "0",
"mapbottommargin": "10",
"maprightmargin": "0",
"showbevel": "0",
"showcanvasborder": "0",
"bgalpha": "0",
"numbersuffix": "Mill.",
"includevalueinlabels": "0",
"labelsepchar": ": ",
"basefontsize": "9",
"showlabels": "1"
},
"colorrange": {
"color": [
{
"minvalue": "1",
"maxvalue": "3",
"displayvalue": "Highest Live Accounts",
"code": "81ca9d"
},
{
"minvalue": "4",
"maxvalue": "6",
"displayvalue": "Highest Live Outstanding",
"code": "00aeef"
},
{
"minvalue": "9",
"maxvalue": "11",
"displayvalue": "Highest Balance per Loan",
"code": "827a00"
},
{
"minvalue": "16",
"maxvalue": "18",
"displayvalue": "Highest Ticket Size",
"code": "f7977a"
},
{
"minvalue": "25",
"maxvalue": "27",
"displayvalue": "Highest Average IRR",
"code": "9d0039"
}
]
},
"data": [
{
"id": "001",
"value": "",
"tooltext": "Andaman and Nicobar Islands{br}Accounts Live: {br}Live Book: {br}Average Balance Per Loan: {br}Average Loan Size: {br}Average IRR: ",
"link": "j-mapJS-filter,[Customer].[State],[Customer].[State].%26amp;[3.],Andaman and Nicobar Islands,001",
"color": "FFFFFF"
},
{
"id": "002",
"value": "",
"tooltext": "Andhra Pradesh{br}Accounts Live: {br}Live Book: {br}Average Balance Per Loan: {br}Average Loan Size: {br}Average...