Attribute Reference
Example of USA Chart:
JavaScript embedding code:
<script type="text/javascript">
FusionCharts.ready(function(){
var myChart = new FusionCharts({
"type": "usa",
"dataFormat": "jsonurl",
"dataSource": "chartdata.json"
});
});
</script>
Data for this chart:
{
"chart": {
"caption": "Annual Sales by State",
"subcaption": "Last year",
"entityFillHoverColor": "#cccccc",
"numberScaleValue": "1,1000,1000",
"numberScaleUnit": "K,M,B",
"numberPrefix": "$",
"showLabels": "1",
"theme": "fusion"
},
"colorrange": {
"minvalue": "0",
"startlabel": "Low",
"endlabel": "High",
"code": "#e44a00",
"gradient": "1",
"color": [
{
"maxvalue": "56580",
"displayvalue": "Average",
"code": "#f8bd19"
},
{
"maxvalue": "100000",
"code": "#6baa01"
}
]
},
"data": [
{
"id": "HI",
"value": "3189"
},
{
"id": "DC",
"value": "2879"
},
{
"id": "MD",
"value": "920"
},
{
"id": "DE",
"value": "4607"
},
{
"id": "RI",
"value": "4890"
},
{
"id": "WA",
"value": "34927"
},
{
"id": "OR",
"value": "65798"
},
{
"id": "CA",
"value": "61861"
},
{
"id": "AK",
"value": "58911"
},
{
"id": "ID",
"value": "42662"
},
{
"id": "NV",
"value": "78041"
},
{
"id": "AZ",
"value": "41558"
},
{
"id": "MT",
"value": "62942"
},
{
"id": "WY",
"value": "78834"
},
{
"id": "UT",
"value": "50512"
},
{
"id": "CO",
"value": "73026"
},
{
"id": "NM",
"value": "78865"
},
{
"id": "ND",
"value": "50554"
},
{
"id": "SD",
"value": "35922"
},
{
"id": "NE",
"value": "43736"
},
{
"id": "KS",
"value": "32681"
},
{
"id": "OK",
"value": "79038"
},
{
"id": "TX",
"value": "75425"
},
{
"id": "MN",
"value": "43485"
},
{
"id": "IA",
"value": "46515"
},
{
"id": "MO",
"value": "63715"
},
{
"id": "AR",
"value": "34497"
},
{
"id": "LA",
"value": "70706"
},
{
"id": "WI",
"value": "42382"
},
{
"id": "IL",
"value": "73202"
},
{
"id": "KY",
"value": "79118"
},
{
"id": "TN",
"value": "44657"
},
{
"id": "MS",
"value": "66205"
},
{
"id": "AL",
"value": "75873"
},
{
"id": "GA",
"value": "76895"
},
{
"id": "MI",
"value": "67695"
},
{
"id": "IN",
"value": "33592"
},
{
"id": "OH",
"value": "32960"
},
{
"id": "PA",
"value": "54346"
},
{
"id": "NY",
"value": "42828"
},
{
"id": "VT",
"value": "77411"
},
{
"id": "NH",
"value": "51403"
},
{
"id": "ME",
"value": "64636"
},
{
"id": "MA",
"value": "51767"
},
{
"id": "CT",
"value": "57353"
},
{
"id": "NJ",
"value": "80788"
},
{
"id": "WV",
"value": "95890"
},
{
"id": "VA",
"value": "83140"
},
{
"id": "NC",
"value": "97344"
},
{
"id": "SC",
"value": "88234"
},
{
"id": "FL",
"value": "88234"
}
]
}
<chart caption="Annual Sales by State" subcaption="Last year" entityfillhovercolor="#cccccc" numberscalevalue="1,1000,1000" numberscaleunit="K,M,B" numberprefix="$" showlabels="1" theme="fusion">
<colorrange minvalue="0" startlabel="Low" endlabel="High" code="#e44a00" gradient="1">
<color maxvalue="56580" displayvalue="Average" code="#f8bd19" />
<color maxvalue="100000" code="#6baa01" />
</colorrange>
<set id="HI" value="3189" />
<set id="DC" value="2879" />
<set id="MD" value="920" />
<set id="DE" value="4607" />
<set id="RI" value="4890" />
<set id="WA" value="34927" />
<set id="OR" value="65798" />
<set id="CA" value="61861" />
<set id="AK" value="58911" />
<set id="ID" value="42662" />
<set id="NV" value="78041" />
<set id="AZ" value="41558" />
<set id="MT" value="62942" />
<set id="WY" value="78834" />
<set id="UT" value="50512" />
<set id="CO" value="73026" />
<set id="NM" value="78865" />
<set id="ND" value="50554" />
<set id="SD" value="35922" />
<set id="NE" value="43736" />
<set id="KS" value="32681" />
<set id="OK" value="79038" />
<set id="TX" value="75425" />
<set id="MN" value="43485" />
<set id="IA" value="46515" />
<set id="MO" value="63715" />
<set id="AR" value="34497" />
<set id="LA" value="70706" />
<set id="WI" value="42382" />
<set id="IL" value="73202" />
<set id="KY" value="79118" />
<set id="TN" value="44657" />
<set id="MS" value="66205" />
<set id="AL" value="75873" />
<set id="GA" value="76895" />
<set id="MI" value="67695" />
<set id="IN" value="33592" />
<set id="OH" value="32960" />
<set id="PA" value="54346" />
<set id="NY" value="42828" />
<set id="VT" value="77411" />
<set id="NH" value="51403" />
<set id="ME" value="64636" />
<set id="MA" value="51767" />
<set id="CT" value="57353" />
<set id="NJ" value="80788" />
<set id="WV" value="95890" />
<set id="VA" value="83140" />
<set id="NC" value="97344" />
<set id="SC" value="88234" />
<set id="FL" value="88234" />
</chart>
Map Attributes
Functional Attributes
These attributes let you control a variety of functional elements on the map. For example, you can opt to show/hide entity labels, display them above/below the markers, and so on.
Sets whether entity labels will be shown or hidden
Default value: 0 (hidden)
Range: 0/1
Sets whether entity names will be shown as a part of map labels
This attribute works only when the showLabels
attribute is set to 1.
Range: 0/1
Sets whether entity values will be shown as a part of map labels
This attribute works only when the showLabels
attribute is set to 1.
Range: 0/1
Sets whether an entity's short name or long name will be a part of the map label
Default value: 1 (the short name is used in the label)
This attribute works only when the showLabels
attribute is set to 1.
Range: 0/1
Sets whether an entity's short name or long name will be a part of the tooltip for an entity
Default value: 1 (the long name is used in the tooltip)
This attribute works only when the showLabels
attribute is set to 1.
Range: 0/1
Sets whether a shadow effect will be applied to the map
Default value: 0 (the effect is not applied)
Range: 0/1
Sets the map caption
Sets the map sub-caption
Sets the caption and sub-caption position
Default value: top-center
Range: top-left, top-right, bottom-left, bottom-right and top-center
The entire map can act as a hotspot. This attribute is used to specify the URL to define the hotspot link for the map. The link can be specified in FusionCharts Link Format.
Sets whether the tooltip will shown for entities that don't have a value assigned in the JSON data
Range: 0/1
Sets the menu item label for the custom context menu item
Sets whether entity labels will be shown above or below the markers on a map
Default value: 1 (the labels appear above the markers)
Range: 0/1
Map Cosmetics
The following attributes let you configure map cosmetics like background color, background alpha etc.
Sets whether a border will be shown around the canvas
Default value: 0 (the canvas border is hidden)
Range: 0/1
Sets the color for the canvas border, if the border is shown
Range: Hex Color Code
Sets the thickness for the canvas border, if the border is shown
Range: In Pixels
Sets the transparency for the canvas border, if the border is shown
Range: 0-100
Sets the background color for the map
To apply a gradient color background, specify a comma-separated list of the hex color codes to be used
Sets the background transparency
To set the transparency for a gradient background, specify a comma-separated list of the transparency value for each color.
Range: 0-100
For a gradient backgrouns, sets the ratio of each color constituent.
Range: 0-100
For a gradient backgrouns, sets the angle of each color constituent.
Range: 0-360
Sets an image as the map background by taking the path and name of the image as the value
Sets the transparency of the background image
Range: 0-100
Sets the display mode for the background image
Acceptable values include:
stretch: Image is expanded to fit the entire map area, without maintaining original constraints
tile: Image is repeated as a pattern on the entire map area
fit: Image is made to fit proportionately on the map area
fill: Image is made to proportionately fill the entire map area
center: Image is positioned at the center of the map area
none: None of the above modes are applied
Default value: none
Range: stretch, tile, fit, fill, center, none
Sets the vertical alignment of the background image
Range: top, middle, bottom
Sets the horizontal alignment of the background image
Range: left, middle, right
Sets the magnifying scale for the background image
This attribute will only work when bgImageDisplayMode
is set to none, center, or tile.
Range: 0-300
Sets the path to load external logo (image file) on the map
Range: URL
Sets the logo position
Acceptable values include: TL (top-left), TR (top-right), BL (bottom-left), BR (bottom-right), CC (center of the screen)
Range: TL, TR, BL, BR, CC
Sets the logo transparency
Range: 0-100
Sets the magnifying scale for the logo
Range: 0-300
Links the logo to an external URL, specify the link in this attribute. The link can be in FusionCharts Link Format, allowing you to link to new windows, pop-ups, frames etc.
Range: URL
Map Entities Cosmetics
These attributes let you configure how your entities will appear on the map.
Sets whether the entity borders will be shown or hidden
Default value: 1 (the borders are shown)
Range: 0/1
Sets the border color for map entities
Range: Hex Color Code
Sets the border transparency for map entities
Range: 0-100
Sets the default fill color for the entities, if no color range has been specified
Range: Hex Color Code
Sets the transparency for the fill color of the entities
Range: 0-100
Sets whether the entities will be rendered in a different color—specified using the hoverColor
attribute—when the mouse pointer is hovered over them
Range: 0/1
Sets the color that will be applied to an entity when the mouse pointer is hovered over it
Range: Hex Color Code
Sets a default color for enities that are not assigned any value in the map data
Range: Hex Color Code
Sets a default transparency for enities that are not assigned any value in the map data
Range: 0-100
Sets whether the tooltip for the entities will be shown or hidden
Default value: 1 (the tooltip is shown)
Range: 0/1
Specifies the color of the static label connector. This attribute is used when you want to explicitly define the color of the label connector. If not set, the label connector color is taken from connectorColor attribute.
Specifies the transparency of the static label connector. This attribute is used when you want to explicitly define the transparency of the label connector. If not set, the label connector alpha is taken from connectorAlpha attribute.
Range: 0-100
Number Formatting
Sets whether the numbers displayed on the map will be formatted using commas
For example, when formatNumber
is set to 1, the number will be rendered as 40,000; when formatNumber
is set to 0, it will be rendered as 40000.
Range: 0/1
Sets the number of decimal places to which all numbers on the map will be rounded to.
Range: 0-10
Sets whether zero padding will be forced for decimal numbers
For example, if you limit the maximum number of digits after the decimal point to 2, a number like 55.344 will be rounded to 55.34. This does not mean that all numbers will be displayed with a fixed number of decimal places. For instance 55 will not be displayed as 55.00 and 55.1 will not become 55.10. To have fixed number of decimal places attached to all the numbers, set this attribute to 1.
Range: 0/1
Sets a prefix for the numbers on the map
For example, to represent all dollars figure on the map, set this attribute to $. The numbers will then be rendered as $40000, $50000.
Click here for more information.
Range: Character
Sets a suffix for the numbers on the map
For example, to represent all numbers quantified as per annum, set this attribute to ' /a'. The numbers will then be rendered as 40000/a, 50000/a and so on.
Click here for more information.
Range: Character
Sets the character to be used as the decimal separator for the numbers on the map
Click here for more information.
Range: Character
Sets the character to be used as the thousand separator for the numbers on the map
Click here for more information.
Range: Character
Sets the number of digits after which the thousand separator should be positioned
Click here for more information.
In some countries, commas are used as decimal separators and dots as thousand separators. If your chart data is in XML andyou specify such values, it returns an error while converting to number. So, FusionMaps XT accepts the input decimal and thousand separator from user, so that it can convert it accordingly into the required format. This attribute lets you input the decimal separator.
Click here for more information.
Range: Character
In some countries, commas are used as decimal separators and dots as thousand separators. If your chart data is in XML andyou specify such values, it returns an error while converting to number. So, FusionMaps XT accepts the input decimal and thousand separator from user, so that it can convert it accordingly into the required format. This attribute lets you input the decimal separator.
Click here for more information.
Range: Character
Sets whether the suffix K (for thousands) and M (for millions) will be added to a number after it is truncated and rounded off.
For example, when formatNumberScale
is set to 1, the number 1043 will be rendered as 1.04K (assuming decimals
is set to 2).
Click here for more information.
Range: 0/1
Sets the default unit of the numbers on the map
Click here for more information.
Sets the unit for each block of the number scale
Click here for more information.
Sets the range for each block on the number scale
Click here for more information.
Sets whether recursive scaling will be enabled for the numbers on the map
Click here for more information.
Range: 0/1
Sets the number of recursions to complete during recusrive scaling
Setting this attribute to 1 completes the entire set of recursion
Click here for more information.
Sets the separator character for the scales generated after recursion
Click here for more information.
Legend Properties
If you've defined color ranges, the color range names appear in a legend. The following attributes let you customize the functional and cosmetic properties for the legend such as the legend position, legend border color, and so on.
Sets whether the legend will be shown or hidden
Range: 0/1
Sets whether legend interaction will be enabled or disbaled
Entities can be shown or hidden from the map by clicking the associated legend item.
Range: 0/1
Sets whether the legend can be made dragable
Setting this attribute to 1 enables dragging the legend anywhere around the chart.
Default value: 0
Note: This attribute does not refer to the dragable sliders on a gradient legend, but to the complete legend.
Range: 0/1
Sets the legend caption
You can reverse the ordering of the legend items in the legend by setting this attribute to 1.
Range: 0/1
Positions the legend to render below the map or to the right of the map
Default value: BOTTOM
Range: BOTTOM or RIGHT
Sets the magnifying scale for the legend icons
Default value: 1
Range: 0-5
Sets whether the shadow effect will be applied to the legend
Range: 0/1
Sets the legend background color
Range: Hex Color Code
Sets the legend background transparency
Range: 0-100
Sets the legend border color
Range: Hex Color Code
Sets the legend border thickness
Range: In Pixels
Sets the legend border transparency
Range: 0-100
Sets the legend scroll bar background color
A scroll bar is rendered in the legend if there are too many legend items.
Range: Hex Color Code
Sets the legend scroll bar color
A scroll bar is rendered in the legend if there are too many legend items.
Range: Hex Color Code
Sets the color for the legend scroll bar buttons
A scroll bar is rendered in the legend if there are too many legend items.
Range: Hex Color Code
Sets the gradient legend pointer color
Range: Hex Color Code
Sets the gradient legend pointer transparency
Range: 0-100
Sets the gradient legend pointer border thickness
Sets the gradient legend pointer border transparency
Range: 0-100
Sets the gradient legend pointer border color
Range: Hex color code
Sets the color of the line showing the gradient legend numeric scale
Range: Hex Color Code
Sets the opacity of the line showing the gradient legend numeric scale
Range: 0-100
Sets the thickness of the line showing the gradient legend numeric scale
The data Object
The data object is used to create entities for the map.
Numeric value of the <entity>.
If you want to display your custom value for each entity (apart from it's long name, short name or value), you can specify it here.
Lets you specify a custom tool text for the entity.
Lets you specify a custom color for the entity. If color range is defined, each entity takes its color from the range it belongs to. However, if you need to force a color for an entity (over-riding the range value), you can specify the hex color code here.
Range: Hex Color Code
Custom alpha (transparency) for the entity
Range: 0-100
If you want to link the entity to a URL, you can specify the URL in FusionCharts format. The link can open in same window, new window, pop-up, frames or as JavaScript functions.Please see the section Drill Down Maps
to learn more about this.
If you want the label of this particular entity to appear in a different font (other from the one defined in STYLES/map element), specify the font face here.
If you want the label of this particular entity to appear in a different font size (other from the one defined in STYLES/map element), specify the font size here.
If you want the label of this particular entity to appear in a different font color (other from the one defined in STYLES/map element), specify the font color here.
Range: 0/1
If you want the label of this particular entity to appear bold (other from the one defined in STYLES/map element), set this as 1.
Range: 0/1
Whether to show the label for this entity? This attribute over-rides the value specified for showLabels attribute for <map> element.
Range: 0/1
Whether to show tooltip for the entity. Default value is 1.
Range: 0/1
Sets a color to the label connector line (if any).
Specifies the transparency of the label connector line (if any).
Range: 0-100
Whether to show hover color when user hovers mouse over entity. Set this attribute to 0 to disable hover color.
Range: 0/1
Tool-tip
These attributes let you control the tool tip. You can set the background color, border color, separator character and few other details.
Whether to show tool tip on map? When this attribute is set to 0, all the tooltips including entity tooltips, marker toolitps and connector tooltips are disabled.
Range: 0/1
Background Color for tool tip.
Range: Hex Color Code
Border Color for tool tip.
Range: Hex Color Code
The character specified as the value of this attribute separates the name and value displayed in tool tip.
Whether to show shadow for tool-tips on the map.
Range: 0/1
Font Properties
Using the attributes below, you can define the generic font properties for the text on the map.
This attribute lets you set the font face (family) of all the text (data labels, values etc.) on map.
Range: Font Name
This attribute sets the base font size of the map i.e., all the values and the names in the map which lie on the canvas will be displayed using the font size provided here.
Range: 0-72
This attribute sets the base font color of the map i.e., all the values and the names in the map which lie on the canvas will be displayed using the font color provided here.
Range: Hex Color Code
Map Padding & Margins
The following attributes help you control map margins and paddings.
Padding of legend from right/bottom side of map
Range: In Pixels
Amount of empty space that you want to put on the left side of your map. Nothing is rendered in this space.
Range: In Pixels
Amount of empty space that you want to put on the right side of your map. Nothing is rendered in this space.
Range: In Pixels
Amount of empty space that you want to put on the top of your map. Nothing is rendered in this space.
Range: In Pixels
Amount of empty space that you want to put on the bottom of your map. Nothing is rendered in this space.
Range: In Pixels
Attributes to allow exporting of map as image, PDF, SVG or XLSX
These attributes allow you to control the saving of map as image.
Whether the map will allow exporting to images, PDFs, SVG or XLSX.
Default value: 0
Range: 0/1
In case of server-side exporting, the action specifies whether the exported image will be sent back to client as download, or whether it'll be saved on the server.
Default value: download
Range: 'save' or 'download'
In case of server side exporting, this refers to the path of the server-side export handler (the ready-to-use scripts that we provide).
Lets you configure what output formats to allow for export of map, in the export context menu, and also customize the label for each menu item. The attribute value should be a pipe (|) delimited separated key-value pair. Example: exportFormats: PNG=Export as High Quality Image|JPG|PDF=Export as PDF File
This attribute when set to 1, enables the client-side export feature.
Default value: 0
Range: 0/1
Whether the menu items related to export (e.g., Save as JPEG etc.) will appear in the context menu of map.
Range: 0/1
In case of server-side exporting and when using download as action, this lefts you configure whether the return image, PDF, SVG or XLSX will open in same window (as an attachment for download), or whether it will open in a new window.
Default value: _self
Range: '_self' or '_blank'
Using this attribute you can specify the name (excluding the extension) of the output (export) file.
Marker Properties
FusionMaps XT allows user-defined markers on the map. Markers are custom defined points on the map, which help you pin-point locations like cities, houses, malls, junctions etc. Using the properties listed below, you can configure the various aspects of the markers.
This attribute sets the font face for all the defined marker labels. You can over-ride this using STYLES.
Range: Font Name
This attribute sets the font size for all the defined marker labels on the map. You can over-ride this using STYLES.
Range: 0-72
This attribute sets the font color for all the defined marker labels on the map. You can over-ride this using STYLES.
Range: Hex Color Code
Whether to show tool tips for the defined markers?
Range: 0/1
You can opt to show/hide label for all the markers on the map using this attribute.
Range: 0/1
This attribute lets you set a global label padding between the marker icon and its label. You can later over-ride the label padding for each individual marker too.
Range: Pixels
This attribute lets you set a common background color for all the defined markers on the map. You can later over-ride individual marker colors by using SHAPE definitions.
This attribute lets you set a common border color for all the defined markers on the map. You can later over-ride individual marker border colors by using SHAPE definitions.
This attribute lets you set a common radius for all the defined markers on the map. You can later over-ride individual marker border colors by using SHAPE definitions.
Range: Pixels
Sets the color of the marker connectors. Also, if labelConnectorColor is not set in XML/JSON data, the same color is applied to the label connector lines (if any) on the map.
Range: Hex Color Code
Sets the opacity of the marker connectors. Also, if labelConnectorAlpha is not set in XML/JSON data, the same opacity is applied to the label connector lines (if any) on the map.
Range: 0-100
Lets you enable hover effect for this specific entity
Range: 0/1
Fll color for this specific marker on hover
Alpha for this specific marker on hover
Range: 0-100
Fill ratio for this specific marker on hover
Range: Sums up to 100
Fill angle for this specific marker on hover
Range: 0-360
Border thickness for this specific marker on hover
Range: In Pixels
Border color for this specific marker on hover
Border alpha for this specific marker on hover
Range: 0-100
Sets the color of the marker connectors.This attribute is deprecated. Use connectorColor instead.
Range: Hex Color Code
Sets the opacity of the marker connectorsThis attribute is deprecated. Use connectorAlpha instead.
Range: 0-100
If you've defined any marker connectors, this attribute lets you set the thickness of all those connectors.
Range: Pixels
Whether to show or hide tooltip for all marker connectors present in a map. The default value is 1.
Range: 0/1
Whether the marker connector line should appear as dashed?
Range: 0/1
If marker connector line is to appear as dash, this attribute lets you set the dash length of each part of dash.
Range: Pixels
If marker connector line is to appear as dash, this attribute lets you set the dash gap of each part of dash.
Range: Pixels
This attribute lets you to scale the markers automatically with respect to the map dimensions. By default, this attribute is set to 0.
Range: 0/1
Using this attribute, you can specify the fill color for the marker shape (hex color code without #). If you specify a comma separated list of hex color codes (without #), FusionMaps XT will use those colors to form a gradient.
Range: 0/1
Used to specify the fill alpha. In case of gradients, you'll need to specify a comma separated list of alpha.
Range: 0-100
If you're using gradient fills for the marker, this attribute lets you set the ratio (on a scale of 0-100) for the gradient component colors.
Range: 0-100
If you're using gradient fills for the marker, this attribute lets you set the angle for the gradient.
Range: 0-360
Border alpha for the marker shape.
Range: 0-100
The markers object
All data pertinent to markers (applicable marker shapes, definitions for zones in which markers will be applied) is defined within the markers
object and its child objects.
The definition object (child of the markers object)
The markers
object is used to define and apply markers to a map. The definition
object is used to define the zones on the map within which the markers will be placed.
Unique ID for the zone
Using this attribute, you can set the shape that this marker will assume on the map already defined.
Relative X-position of the marker.
Relative Y-position of the marker.
You can over-ride the labels for each marker during its application. This label will over-ride the label specified during definition.
Like label, you can also over-ride the label position for each marker during its application.
Range: LEFT, RIGHT, CENTER, TOP, BOTTOM
If you need to provide custom tool text for a marker, you can do so using this attribute.
If you need your marker to link to other pages, when clicked, define the link here. The link can open in same window, new window, pop-up, frames, throw events etc. Please see Drill Down Maps
section for more information on link format.
If you're using the same shape (shapeId) to represent multiple markers on the map, you can have them differ in size using this attribute. This attributes set the scaling of a particular marker. Valid values are floating numbers between 0 and 5.
Range: 0-5
In case of arc, circle or polygon, this attribute lets you set the radius of the same. The value of the radius attribute in <shape> element overrides the value of this attribute.
Range: In pixels
The application object (child of the markers object)
The markers
object is used to define and apply markers to a map. The application
object is used to map markers shapes to zones on the map.
ID that matches the marker application to its definition. If you specify an ID which has not been defined previously, you'll see an error in the debug window.
Using this attribute, you can set the shape that this marker will assume on the map. FusionMaps XT offers 4 default shapes - circle, arc, triangle or diamond. You can also define your custom shapes and then refer to those.
You can over-ride the labels for each marker during its application. This label will over-ride the label specified during definition.
Like label, you can also over-ride the label position for each marker during its application.
Range: LEFT, RIGHT, CENTER, TOP, BOTTOM
If you need to provide custom tool text for a marker, you can do so using this attribute.
If you need your marker to link to other pages, when clicked, define the link here. The link can open in same window, new window, pop-up, frames, throw events etc. Please see "Drill Down Maps" section for more information on link format.
If you're using the same shape (shapeId) to represent multiple markers on the map, you can have them differ in size using this attribute. This attributes set the scaling of a particular marker. Valid values are floating numbers between 0 and 5.
Range: 0-5
The shapes object (child of the markers object)
The markers
object is used to define and apply markers to a map. The shapes
object is used to define the shapes that will be applied as markers.
Each shape needs to be given a unique Id. During application, you'll directly refer to the ID of each shape to plot it on the map.
type specifies what kind of shape the marker will draw as. Valid values are circle, arc, polygon or image. So, if you want to create a pentagon, select polygon for this attribute and then later set sides to 5.
Range: CIRCLE, ARC, POLYGON, IMAGE
If you're using an image marker shape, you necessarily need to specify it's URL. FusionMaps XT can load GIF, JPEG and PNG files from the same sub-domain only (owing to cross browser security restrictions).
Range: URL
If you've opted to plot a polygon shaped marker, you can specify the number of sides the polygon will have, using this attribute. Valid values are 3-20.
Range: 3-20
This attribute lets you configure the alpha of the entire marker.
Range: 0-100
This attribute lets you set the distance (in pixels) between your marker shape and the marker label.
Range: In Pixels
Using this attribute, you can specify the fill color for the marker shape (hex color code without #). If you specify a comma separated list of hex color codes (without #), FusionMaps XT will use those colors to form a gradient.
Range: In Pixels
Used to specify the fill alpha. In case of gradients, you'll need to specify a comma separated list of alpha.
Range: 0-100
If you're using gradient fills for the marker, this attribute lets you set the ratio (on a scale of 0-100) for the gradient component colors.
Range: 0-100
If you're using gradient fills for the marker, this attribute lets you set the angle for the gradient.
Range: 0-360
If you're using gradient fills for the marker, this attribute lets you set the pattern for gradient - valid values are linear
or radial
.
Range: LINEAR, RADIAL
Whether to show border for the marker shape?
Range: 0/1
Border color for the marker shape.
Range: Hex Color Code
Border thickness for the marker shape.
Range: In Pixels
Border alpha for the marker shape.
Range: 0-100
In case of arc, circle or polygon, this attribute lets you set the radius of the same.
Range: In Pixels
In case of arc, this attribute lets you set the inner radius of the same.
Range: In Pixels
In case of arc or polygon, this attribute lets you set the starting draw angle.
Range: 0-360
In case of arc, this attribute lets you set the ending draw angle.
Range: 0-360
This attribute lets you dynamically re-scale the x-scale of your images after they've been loaded. Valid range is 0-1000.
Range: 0-1000
This attribute lets you dynamically re-scale the y-scale of your images after they've been loaded. Valid range is 0-1000.
Range: 0-1000
When using an image marker, you can specify how the image will vertically align with respect to the marker's y position using this attribute. Valid values are top
, middle
and bottom
. For markers which are simple icons, you can use the middle vertical align. In that case, the image will vertically be at the center position of the marker. However, if you've an image icon like a pin-point or a needle with its pointer faced downwards, you'll need to set the vertical alignment position to top
, so that the pointer exactly points to the given marker location. Horizontally, the images are always aligned centrally.
Range: TOP, MIDDLE, BOTTOM
The connectors object (child of the markers object)
The markers
object is used to define and apply markers to a map. The connectors
object is used to draw connectors to connect markers to other markers or marker labels.
Id of the marker from where the connector will start.
Id of the marker where the connector will end.
Each connector can also link to an external URL. For this attribute, you can specify the link for the connector in FusionCharts Link format.
Each connector can have a visible text label. This attribute lets you set the text.
If you want to set a custom tool text for the connectors, this attribute lets you do so.
Thickness of the connector line.
Range: 0-10
Color of the connector line.
Range: Hex Color Code
Alpha (transparency) of the connector line.
Range: 0-100
Whether the connector line should appear as dashed?
Range: 0/1
If the connector line is to appear as dashed, this attribute defines the length of each dashed line.
Range: 0-10
If the connector line is to appear as dashed, this attribute defines the gap between each dashed line.
Range: 0-10
Lets you enable hover effect for this specific connector
Range: 0/1
Color for this specific connector on hover
Alpha for this specific connector on hover
Range: 0-100
Border thickness for this specific connector on hover
Range: In Pixels
Whether to show tooltip for the connector. Default value is 1.
Range: 0/1
The entityDef object
FusionMaps XT allows you to redefine the ID, short name, and long name of an entity, using the entityDef
object. This object contains the following attributes:
The internal and default ID of any entity of the map.
The new ID of any entity of the map which overrides the internal ID.
The short descriptive name of an entity.
The long descriptive name of an entity.
Lets you enable hover effect for this specific entity
Range: 0/1
Sets the value for maginifying an entity's border when the entity is hovered upon
Range: In Pixels
Fill color for the specific entity on hover
Alpha for the specific entity on hover
Range: 0-100
If hover color is defined as a gradient using, this attribute lets you specify the distribution of those colors in a ratio that should sum to 100
Range: Sums up to 100
Fill angle for the specific entity on hover
Range: 0-360
The colorRange object
The colorRange
object is used to define ranges for categorizing entities on a map based on their data values. This object contains the attributes to define the range scale. Note: The colorRange
object is not used to collectively configure all ranges; the color
object (child of the colorRange
object) is used to do that.
Whether to show Gradient Legend. Default value is 0.
Range: 0/1
Sets the minimum value or the lower limit of the numeric range and Gradient Legend.
Specifies the starting color of the lower limit of Gradient Legend.
Range: Hex Color Code
Starting opacity of Gradient Legend. Default value is 100.
Range: 0-100
Specifies the label for the lower limit of Gradient Legend.
Specifies the label for the upper limit of Gradient Legend.
The color object (child of the `colorRange` object)
The color
object is used to define individual ranges using the following attributes:
Lower limit of range.
Upper limit of range.
Text representation of range (to be shown in legend).
Hex color code (without #) for the range.
Range: Hex Color Code
Transparency (0-100) for the entities belonging to that range.
Range: 0-100
Hover effects
The hover effect attributes let you customize the resultant effect on the entities when the mouse pointer is hovered over them.
Lets you enable hover effect for entities and markers in the map
Range: 0/1
Lets you enable hover effect just for entities on the map
Range: 0/1
Specifies the fill color for a map entity on hover
Specifies the alpha for a map entity on hover
Range: 0-100
Specifies the fill ratio for an map entity on hover
Range: Sums up to 100
Specifies the fill angle for a map entity on hover
Range: 0-360
Specifies the fill color for a map marker on hover
Range: N/A
Specifies the fill alpha for a map marker on hover
Range: 0-100
Specifies the fill angle for a map marker on hover
Range: 0-360
Specifies the fill ratio for a map marker on hover
Range: Sums up to 100
Specifies the border thickness for a map marker on hover
Range: In Pixels
Specifies the border color for a map marker on hover
Specifies the border alpha for a map marker on hover
Range: In Pixels
Specifies the fill color for a map connector on hover
Specifies the border thickness for a map connector on hover
Range: In Pixels
Specifies the border alpha for a map connector on hover
Range: 0 -100