Configuring and using Spider Plots

NOTE: Advanced spider styling is new in QlikMaps 2.0.

Toolbar icon

Toolbar icon

When the icon is outlined in green, Spider Plots is active.

Function

Function

On clicking a point while Spider Plots is active, a leg will be drawn to each point that is associated with the clicked point.

NOTE: If the spider legs are not being drawn, there is no relationship or the relationship has not been established.

Simple template

The template below is in the Spider Expression for each new Points object in QlikMaps 2.0, listed here for reference.

/*  
This expression should return a pipe-delimited list of values that define the end points of each spider leg.
Each pipe-delimited value should be the Dimension of point to which you want to render the spider leg.
  Example 1: If "StoreID" is the Dimension field in the "QlikMaps for Points" object, 
  resolve the spider legs on-the-fly using the CONCAT function
    =Concat(DISTINCT TOTAL StoreID, '|')
    
  Example 2: If "StoreID" is the Dimension field in the "QlikMaps for Points" object, 
  use a precaluated field in the data model called "RelatedStores" that contains a pipe-delimted list of related StoreID's
    =RelatedStores  
*/

Advanced styling template

='"color":"#42CB10",
  "width":"2",
  "style":"straight",
  "line":"dashed",
  "children":"' & (Concat(DISTINCT TOTAL StoreID, '|')) & '"'
='"color":"#42CB10|#630021|aliceblue",
  "width":"2|5|8",
  "style":"straight|curved|straight",
  "line":"dashed|solid|dotted",
  "children":"Store1|Store2|Store3"'

The above are example templates for advanced styling of the spider legs. The first example applies a single type of styles to all spider legs, while the second example applies a different type of style to each individual spider leg.

Below are explanations of the different parameters for the advanced styling.

NOTE: You can use some or all of the below parameters in a valid expression, as long as the "children" parameter is valid.

Color

The color parameter alters the color of each spider leg.

A valid expression must return a color in either HEX ("#424242") or CSS-Name ("gold") format. This parameter can be pipe-delimited to apply a different color to individual spider legs, but the number of pipe-delimited color values must match the number of pipe-delimited children values.

Width

The width parameter alters the width in pixels of each spider leg.

A valid expression must return an integer or decimal greater than 0. This parameter can be pipe-delimited to apply a different width to individual spider legs, but the number of pipe-delimited width values must match the number of pipe-delimited children values.

Style

The style parameter alters the geometry of each spider leg, either as a straight line or a bezier curve.

A valid expression must return either "straight" or "curved". This parameter can be pipe-delimited to apply a style to individual spider legs, but the number of pipe-delimited style values must match the number of pipe-delimited children values.

Line

The line parameter alters the style of each spider leg, either a solid, a dashed, or a dotted line.

A valid expression must return either "solid", "dashed", "dotted", or "mixed". This parameter can be pipe-delimited to apply a line style to individual spider legs, but the number of pipe-delimited line style values must match the number of pipe-delimited children values.

Children

The children parameter is identical to the Simple method of spider plot expression (i.e. a pipe-delimited list of values). You can use the same logic as you previously used for this parameter.