FusionCharts - Using Markers to indicate office locations on a map
Created using FusionCharts Suite XT - www.fusioncharts.com
HTML
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.js"></script>
<script src="http://static.fusioncharts.com/code/latest/fusioncharts.maps.js"></script>
<script src="http://static.fusioncharts.com/code/latest/maps/fusioncharts.usa.js"></script>
<script src="http://static.fusioncharts.com/code/latest/themes/fusioncharts.theme.fint.js"></script>
<!--
Using Markers on maps to indicate the zone specific Head Offices and the US Head Office of Harry's supermart
-->
<div id="chart-container">FusionCharts will render here</div>
JavaScript
FusionCharts.ready(function() {
var officeLoc = new FusionCharts({
type: 'usa',
renderAt: 'chart-container',
width: '600',
height: '400',
dataFormat: 'json',
dataSource: {
"chart": {
"theme": "fint",
"useHoverColor": "0",
"caption": "Harry's SuperMart Office Locations",
"subcaption": "Head Office and Zonal Offices",
"fillColor": "#b4ddb0",
"borderColor": "#ffffff",
"showCanvasBorder": "0",
"showShadow": "0",
"showLabels": "0",
"markerRadius": "10",
"markerBorderColor": "#000000",
//Used to enable marker hover effect
"showMarkerHoverEffect": "1",
//Used to change marker fill color
"markerFillColor": "#6baa01",
//Used to change marker border thickness on hover
"markerBorderThickness": "2",
//Used to change marker fill color on hover
"markerFillHoverColor": "#4ae5e7",
//Used to change marker border color on hover
"markerBorderHoverColor": "#333333",
//Used to change marker border thickness on hover
"markerBorderHoverThickness": "4"
},
"markers": {
"application": [{
"id": "west-zone-ho-1",
"shapeId": "zo-shape"
}],
"definition": [{
"id": "west-zone-ho-1",
"x": "100",
"y": "250",
"tooltext": "<b>Zonal office, California</b>{br}Address: 41216 N. Fern Avenue Lancaster CA 93534 {br}Phone: 661-723-1538{br}e-mail: california_zo@harryssupermart.com{br}<img src='http://static.fusioncharts.com/sampledata/userimages/5.png'></img>"
}],
"shapes": [{
"id": "zo-shape",
"type": "circle",
"fillcolor": "#6da81e"
}]
},
"data": [{
"id": "HI"
},
{
"id": "WA"
},
{
"id": "OR"
},
{
"id": "CA",
...