Class ResultHighmap
Object
AbstractPortletDto
ResultHighchart
ResultHighmap
- All Implemented Interfaces:
Serializable,Portlet,ComplexCalculationResult
Holds a Highmaps map definition returned from a logic element.
Create an instance with api.buildHighmap(definition) and return it from a logic element. The definition
is passed to the Highmaps library without validation. The map to render comes from the chart.map
property of the definition. The series data sets the values of the map areas, and the joinBy property of
the series tells Highmaps how to match each data point to an area of the map.
Example:
def definition = [
chart : [map: "custom/europe"],
series: [
[
name : "Revenue",
joinBy: "hc-key",
data : [
["hc-key": "de", value: 120],
["hc-key": "fr", value: 95],
["hc-key": "cz", value: 40]
]
]
]
]
return api.buildHighmap(definition)
- Since:
- 3.5 - Salty Dog
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class ResultHighchart
ResultHighchart.ContextMenu, ResultHighchart.ContextMenuItem, ResultHighchart.OnPointClick, ResultHighchart.TriggerEvent -
Field Summary
Fields inherited from class AbstractPortletDto
dragDropEnabled, layout, messages, resizingEnabled -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe map renderer will try to download the appropriate map by peeking atchart.mapvalue of the provideddefinition.Not intended for public use, required for JSON serialization.Returns the result type of the map.Methods inherited from class ResultHighchart
addAcceleratorsOnlyJS, addModule, addResultMatrixTab, getChartDefinition, getDataHeaders, getEvents, getModulesList, getResultMatrixList, getShowDataTab, onPointClick, setDataHeaders, setDrilldownResultMatrixTabs, setResultMatrixTabs, setShowDataTab, showDataTabMethods inherited from class AbstractPortletDto
getLabelOverride, layout, setLabelOverride, setLayout, value, withDragDrop, withError, withHeight, withHeight, withInfo, withLabelOverride, withLayout, withLayout, withLayout, withResizing, withTab, withWarning, withWidth, withWidth
-
Constructor Details
-
ResultHighmap
Not intended for public use. Useapi.buildHighmap()instead.- Parameters:
definition- The Highmaps definition, as a map of maps and arrays.- See Also:
-
-
Method Details
-
addMap
The map renderer will try to download the appropriate map by peeking atchart.mapvalue of the provideddefinition. This method allows to download any other JavaScript file available under themapdata/directory.- Parameters:
maps- one or more Highmaps compatible JavaScript map names, with the same form as would be used for thechart.mapproperty of the mapdefinition; i.e. including the path frommapdata/and without the ".js" extension. e.g. "countries/us/us-all", "custom/world-robinson", "custom/europe"- Returns:
- the
ResultHighmapinstance, for convenience - See Also:
-
getMapsList
Not intended for public use, required for JSON serialization.- Returns:
- The map names added with
addMap(String...).
-
getResultType
Returns the result type of the map.- Specified by:
getResultTypein interfaceComplexCalculationResult- Overrides:
getResultTypein classResultHighchart- Returns:
- Always
"HIGHMAP".
-