Separated Tooltips Text Configuration

Overview

AnyChart Stock Tooltips is a very powerful way to show information in tooltips; they can show HTML-formatted text, series icons, and can be displayed in various ways. This article covers almost all the text-related options of Separated tooltips.

to top

Text Configuration and Formatting

The formatting string is very important, as it defines what information is to be shown in the tooltips for one or the other series or indicator. AnyChart Stock provides a very versatile way to configure this string, including HTML, special tokens and formatting options.

Here is a basic XML syntax for defining what data is to be shown in a tooltip:

XML/JSON Syntax
Plain code
03     <format><![CDATA[Value: {%Value}]]></format>
04   </separated_tooltip>
01{
03    format: "Value: {%Value}"
04  }
05}

to top

Tokens

To show values of a series and points of a technical indicator, you can use special tokens; they are replaced with the actual values when the chart is shown. AnyChart Stock has a lot of tokens, and you can use them with static text or alone.

The illustration below demonstrates a tooltip and shows the sample tokens used for creating it:

to top

Token Properties

Token Properties return certain values associated with the token. Some of the tokens are the values themselves, but most of them are not. The table below lists all the tokens and their properties:

Token Group Available Properties
{%SeriesName}
{%SeriesIcon}
These tokens do not have any properties .
{%Value}
{%ValueChange}
{%PercentValueChange}
{%Open}
{%High}
{%Low}
{%Close}
{%Volume}
{%ChangeIcon} *
{%CustomField} **
"%ChangeColor" ***
First
Last
FirstVisible
LastVisible
Min
Max
MinVisible
MaxVisible
Current
{%Date} First
Last
FirstVisible
LastVisible
Current

* - {%ChangeIcon} is replaced with the icon that illustrates whether the value is rising or declining, and like any numeric token this one must "know" what point is to be analyzed. The use of this token is described in detail in Using Falling/Rising Icons.

** - {%CustomField} denotes any custom field that can be defined in the data provider used by the series. If you need some additional information to be shown in a tooltip, you can use custom fields for storing it and custom tokens for displaying it. This option is covered in detail in Using Custom Fields of Data-Provider.

*** - "%ChangeColor" is used when you color a text using HTML formatting. With this token you can color a part of the text in Green (rise) or Red (decline) to show the change direction, and are to define the value to be used. Here is a quick example:

<format><![CDATA[Change: <font color="%ChangeColor.Current"></font>]]></format>

As you can see here, the %ChangeColor token is used in the color attribute of the <font> HTML tag. A more detailed description on this can be found in Using Color Tokens.

The table below lists all the available properties and their descriptions:

Property Name Description
First Value of the field from the first point in a series.
Last Value of the field from the last point in a series.
FirstVisible Value of the field from the first visible point in a series.
LastVisible Value of the field from the last visible point in a series.
Min Minimal value of the field in a series.
Max Maximal value of the field in a series.
MinVisible Minimal value of the field in the visible range of a series.
MaxVisible Maximal value of the field in the visible range of a series.
Current Value of the field from the point with the hovered date. If series doesn't have a point with the hovered date property returns empty string.

The illustration below explains the meaning of properties by the example of the {%Value} token used with the Line series. Here you can see a chart in the state when user zoomed to a certain range, and all the series data is not shown on the screen. The blue regions on the left and on the right are imaginable - user can't see the first and the last point, but these values can be shown in a tooltip by using properties:

The i illustration shows the properties of {%Value} token, but this model is applicable to all other tokens with the sample properties.

The live sample below shows the use of all the {%Value} token properties in a tooltip for one series.

Live Sample:  Separated Tooltip - Token Properties

to top

Token Formatting

All the tokens that return date, time or numerical values can be formatted.

1. Numerical tokens. All the tokens below return numerical values:

You can define how the numbers returned by these tokens are to be displayed: what is used for the decimal or thousands separator, etc. If, for example, you want to show {%Value.Current} with a plus ("+") sign when value is positive - you should write it as {%Value.Current}{plusSign:true}

This works for any tokens in different elements of AnyChart Stock. Find out more in Numbers Formatting.

2. Date-time token {%Date}. You can add date to a tooltip by using the {%Date} token.

The date token can be formatted too: {%Date}{"%yyyy-%MM-%dd %hh:%mm %tt"}.

These formatting options are applicable to all the date time tokens in AnyChart Stock. Find out more in Date/Time Formatting.

Here is a live sample with two Volume+MA technical indicators; the first one doesn't use any formatting in the tooltip, while the other uses the formatting with the scale parameter:

XML/JSON Syntax
Plain code
03     <format><![CDATA[{%SeriesIcon} <b><font color="%Color">{%SeriesName} {%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:2}</font></b> ]]></format>
04   </separated_tooltip>
01{
03    format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} {%Value}{scale:(1000)(1000)(1000)|( K)( M)( B),numDecimals:2}</font></b> "
04  }
05}

The live sample allows comparing the two charts:

Live Sample:  Separated Tooltip - Token Parameters

As you can see here, scaling improves the look of the tooltips and axis labels tremendously and makes it easier to read them.

to top

Font Settings and HTML Tags

The <font> node is used for configuring the font for any text elements in AnyChart Stock.

There are two font configuration options:

Single Font

By default, a tooltip uses complex HTML formatting defined the defaults. However, you can disable that formatting and set a standard font for the item.

Here us a sample XML for setting a standard font:

XML/JSON Syntax
Plain code
01 <series type="Line" data_provider="dp1" color="#005ECB">
02   <name><![CDATA[IBM]]></name>
03   <tooltip_settings>
04     <separated_tooltip>
05       <font render_as_html="false" family="Tahoma" size="12" bold="true" />
06       <format><![CDATA[{%SeriesIcon} {%SeriesName} {%Value.Current}]]></format>
07     </separated_tooltip>
08   </tooltip_settings>
09 </series>
01{
02  type: "Line",
03  dataProvider: "dp1",
04  color: "#005ECB",
05  name: "IBM",
07    separatedTooltip: {
08      font: {
09        renderAsHtml: false,
10        family: "Tahoma",
11        size: 12,
12        bold: true
13      },
14      format: "{%SeriesIcon} {%SeriesName} {%Value.Current}"
15    }
16  }
17}

As you can see here, you need to disable the HTML mode with the render_as_html attribute in the <font> node and then define the font settings.

Here is a live sample demonstrating the new settings in action:

Live Sample:  Separated Tooltip - Using General Font

As you can see from the sample, the "IBM" string has turned black, like all the other text. Different coloring is available only in the HTML mode, which is more complex although provides more sophisticated formatting options.

to top

HTML Tags

By default all tooltips use HTML formatting. The default settings vary depending on the series type.

With HTML formatting, you have more flexibility. HTML gives you the ability to use the %SeriesColor and %ChangeColor tokens, which color parts of the text depending on the value.

HTML tags should be specified in the CDATA section. Here is a sample XML with the <b> (bold) HTML tag:

XML/JSON Syntax
Plain code
03     <format><![CDATA[{%SeriesIcon} <b>{%SeriesName}</b>]]></format>
04   </separated_tooltip>
01{
03    format: "{%SeriesIcon} <b>{%SeriesName}</b>"
04  }
05}

The XML syntax below demonstrates a sample HTML formatting. It uses coloring, series icon, and value. Each token is colored with the <font> tag:

XML/JSON Syntax
Plain code
03     <format><![CDATA[{%SeriesIcon} <b><font color="%SeriesColor">{%SeriesName}</font>
04 <font color="#808080">Value: </font><font color="#333333">{%Value.Current}</font></b> ]]></format>
05   </separated_tooltip>
01{
03    format: "{%SeriesIcon} <b><font color=\"%SeriesColor\">{%SeriesName}</font>\r\n<font color=\"#808080\">Value: </font><font color=\"#333333\">{%Value.Current}</font></b> "
04  }
05}

The settings only look complex, but they allow achieving really great results:

Live Sample:  Separated Tooltip - Using HTML Formatting

This sample uses static texts and color tokens that change the color of the text depending on the values. Find out more about this in the Color Tokens section.

Flash Player doesn't support all the HTML tags. The full list of the supported tags can be found in Font Configuration.

to top

Using Data Provider Custom Fields

In the Required and Custom Fields section of the Data Provider Configuration article, you can find the instructions for adding custom fields to data provider. One of the places where this feature can be applied is tooltip text.

You can add custom field values to a tooltip to provide additional information. The XML for that may look like this one:

XML/JSON Syntax
Plain code
03     <data_provider data_set="dataSet1" id="dp1">
04       <fields>
05         <field type="Value" column="1" approximation_type="Average" />
06         <field type="Custom" custom_type_name="ExtraValue1" column="2" approximation_type="Average" />
07         <field type="Custom" custom_type_name="ExtraValue2" column="3" approximation_type="Average" />
08         <field type="Custom" custom_type_name="ExtraValue3" column="4" approximation_type="Average" />
09       </fields>
10     </data_provider>
13     <data_provider data_set="dataSet1" column="1" />
01{
03    {
04      dataSet: "dataSet1",
05      id: "dp1",
06      fields: [
07        {
08          type: "Value",
09          column: 1,
10          approximationType: "Average"
11        },
12        {
13          type: "Custom",
14          customTypeName: "ExtraValue1",
15          column: 2,
16          approximationType: "Average"
17        },
18        {
19          type: "Custom",
20          customTypeName: "ExtraValue2",
21          column: 3,
22          approximationType: "Average"
23        },
24        {
25          type: "Custom",
26          customTypeName: "ExtraValue3",
27          column: 4,
28          approximationType: "Average"
29        }
30      ]
31    }
32  ],
34    {
35      dataSet: "dataSet1",
36      column: 1
37    }
38  ]
39}

As you can see here, there there are the standard value fields and the three fields named: ExtraValue1, ExtraValue2 and ExtraValue3, which come from the data set.

The XML syntax below shows how to use the fields obtained from the data provider:

XML/JSON Syntax
Plain code
03     <format><![CDATA[<textformat leading="4">{%SeriesIcon} <b><font color="%Color">{%SeriesName}:</font> {%Value}
04 <font color="#707070">ExtraParam1: </font>{%ExtraParam1}
05 <font color="#707070">ExtraParam2: </font>{%ExtraParam2}
06 <font color="#707070">ExtraParam3: </font>{%ExtraParam3}</b></textformat>]]></format>
07   </separated_tooltip>
01{
02  enabled: true,
04    format: "<textformat leading=\"4\">{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}:</font> {%Value}\r\n<font color=\"#707070\">ExtraParam1: </font>{%ExtraParam1}\r\n<font color=\"#707070\">ExtraParam2: </font>{%ExtraParam2}\r\n<font color=\"#707070\">ExtraParam3: </font>{%ExtraParam3}</b></textformat>"
05  }
06}

When adding a custom field value, you should use the {%CustomFieldName} token, where CustomFieldName is the name in the data provider; for example:<format>{%ExtraValue1}</format>.

The live sample below shows several custom fields in a tooltip:

Live Sample:  Separated Tooltip - Using Custom Fields Parameters

Another example of a similar situation: you show a line chart that visualizes the close price; however, you may also want to show the open, high, low, close prices and the volume amount in the tooltip. In order to do that, you can either define a custom name or use the standard (reserved) names.

The following live sample shows how you can do that:

Live Sample:  Separated Tooltip - Using Custom Fields

If you need text or additional date time fields you can use "Text" and "DateTime" custom fields as described in Data Provider Configuration: Text Fields and Data Provider Configuration: DateTime Fields. Sample XML Snippet below shows a data provider with two text fields and one additional DateTime field:

XML/JSON Syntax
Plain code
01 <?xml version="1.0" encoding="UTF-8"?>
02 <stock xmlns="http://anychart.com/products/stock/schemas/1.9.0/schema.xsd">
03   <data>
04     <data_providers>
05       <general_data_providers>
06         <data_provider data_set="dataSet1" id="s1">
07           <fields>
08             <field type="Value" column="1" />
09             <field type="Text" custom_type_name="Description" column="2" />
10             <field type="Text" custom_type_name="Note" column="3" />
11             <field type="DateTime" custom_type_name="UnixTimeStamp" column="4">
12               <date_time>
13                 <format><![CDATA[%u]]></format>
14               </date_time>
15             </field>
16           </fields>
17         </data_provider>
18       </general_data_providers>
19     </data_providers>
20   </data>
21 </stock>
01{
02  data: {
03    dataProviders: {
04      generalDataProviders: [
05        {
06          dataSet: "dataSet1",
07          id: "s1",
08          fields: [
09            {
10              type: "Value",
11              column: 1
12            },
13            {
14              type: "Text",
15              customTypeName: "Description",
16              column: 2
17            },
18            {
19              type: "Text",
20              customTypeName: "Note",
21              column: 3
22            },
23            {
24              type: "DateTime",
25              customTypeName: "UnixTimeStamp",
26              column: 4,
27              dateTime: {
28                format: "%u"
29              }
30            }
31          ]
32        }
33      ]
34    }
35  }
36}

To use these fields you just refer to them by name and provide formatting options if needed:

XML/JSON Syntax
Plain code
03     <format><![CDATA[<textformat leading="3" tabstops="[5,120]">{%SeriesIcon} <b><font color="%Color">{%SeriesName}</font><br/><tab/><font color="#707070">Description:</font><tab/>{%Description.Current}<br/><tab/><font color="#707070">Note:</font><tab/>{%Note.Current}<br/><tab/><b>{%Date.Current} compared to {%UnixTimeStamp}{"%MMM %dd, %yyyy"}</b></textformat>]]></format>
04   </separated_tooltip>
01{
02  enabled: true,
04    format: "<textformat leading=\"3\" tabstops=\"[5,120]\">{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName}</font><br/><tab/><font color=\"#707070\">Description:</font><tab/>{%Description.Current}<br/><tab/><font color=\"#707070\">Note:</font><tab/>{%Note.Current}<br/><tab/><b>{%Date.Current} compared to {%UnixTimeStamp}{\"%MMM %dd, %yyyy\"}</b></textformat>"
05  }
06}

And here is a live sample of a chart with data provider and tooltips configured as shown above:

Live Sample:  Separated Tooltip - Using Text and DateTime Fields

to top

Series Custom Attributes

Each series can have several custom attributes, containing additional information on the series. These attributes can be used in the tooltip.

Here is the syntax for defining series attributes:

XML/JSON Syntax
Plain code
01 <?xml version="1.0" encoding="UTF-8"?>
02 <stock xmlns="http://anychart.com/products/stock/schemas/1.9.0/schema.xsd">
03   <settings>
04     <tooltip_settings enabled="true">
05       <separated_tooltip>
06         <format><![CDATA[{%SeriesIcon}<b> <font color="%Color">{%LongName}</font> <font color="#777777">({%ShortName}):</font> <font color="#333333">{%Value}</font></b> ]]></format>
07       </separated_tooltip>
08     </tooltip_settings>
09     <charts>
10       <chart>
11         <series_list>
12           <series type="Area" color="#DC3912" data_provider="dp1">
13             <attributes>
14               <attr name="ShortName"><![CDATA[MSFT]]></attr>
15               <attr name="LongName"><![CDATA[Microsoft Corp.]]></attr>
16             </attributes>
17           </series>
18           <series type="Area" color="#0066DD" data_provider="dp2">
19             <attributes>
20               <attr name="ShortName"><![CDATA[ORCL]]></attr>
21               <attr name="LongName"><![CDATA[Oracle Corp.]]></attr>
22             </attributes>
23           </series>
24         </series_list>
25       </chart>
26     </charts>
27   </settings>
28 </stock>
01{
02  settings: {
03    tooltipSettings: {
04      enabled: true,
05      separatedTooltip: {
06        format: "{%SeriesIcon}<b> <font color=\"%Color\">{%LongName}</font> <font color=\"#777777\">({%ShortName}):</font> <font color=\"#333333\">{%Value}</font></b> "
07      }
08    },
09    charts: [
10      {
11        seriesList: [
12          {
13            type: "Area",
14            color: "#DC3912",
15            dataProvider: "dp1",
16            attributes: {
17              ShortName: "MSFT",
18              LongName: "Microsoft Corp."
19            }
20          },
21          {
22            type: "Area",
23            color: "#0066DD",
24            dataProvider: "dp2",
25            attributes: {
26              ShortName: "ORCL",
27              LongName: "Oracle Corp."
28            }
29          }
30        ]
31      }
32    ]
33  }
34}

As you can see from the listing, the tooltip uses custom attributes. To place the attribute value on the tooltip, use the {%SomeAttributeName} tokens, where SomeAttributeName is the name specified in: <attr name="AttrName"/>.

The live sample below shows a series with the ShortName and LongName attributes. These attributes are used in the tooltip:

Live Sample:  Separated Tooltip - Using Series Custom Attributes

to top

Technical Indicators Differences

Technical indicators use the visualization options that are pretty similar to those of series. Different technical indicators are represented by the parameters that are displayed on the chart. For example, Volume+MA shows: Volume and Moving Average as Bar and Line series.

All the visualization settings of a technical indicator are identical to those of a series and so the tooltip settings are similar too.

For example, Stochastic Oscillator. This indicator visualizes the K-Period and the D-Period. There is a special section for them both in the XML. The XML below shows the settings for the K-Period and the D-Period:

XML/JSON Syntax
Plain code
02   <k_series type="Line" color="#253992">
03     <tooltip_settings>
04       <separated_tooltip />
05     </tooltip_settings>
06   </k_series>
07   <d_series type="Line" color="#DB2A0E">
08     <tooltip_settings>
09       <separated_tooltip />
10     </tooltip_settings>
11   </d_series>
01{
02  kPeriod: 15,
03  dPeriod: 5,
04  kSeries: {
05    type: "Line",
06    color: "#253992",
07    tooltipSettings: {
08      separatedTooltip: {}
09    }
10  },
11  dSeries: {
12    type: "Line",
13    color: "#DB2A0E",
14    tooltipSettings: {
15      separatedTooltip: {}
16    }
17  }
18}

As you can see here, the settings are similar to the settings of the series, and you can configure <tooltip_settings> for each parameter.

Here is a sample XML for an indicator with tooltip formatting strings defined:

XML/JSON Syntax
Plain code
02   <k_series type="Line" color="#253992">
03     <tooltip_settings enabled="true">
04       <separated_tooltip>
05         <format><![CDATA[{%SeriesIcon} <b><font color="%Color">{%SeriesName} {%Value.Current}</font></b>]]></format>
06       </separated_tooltip>
07     </tooltip_settings>
08     <name><![CDATA[Stochastic: %K(15)]]></name>
09   </k_series>
10   <d_series type="Line" color="#DB2A0E">
11     <tooltip_settings enabled="true">
12       <separated_tooltip>
13         <format><![CDATA[{%SeriesIcon} <b><font color="%Color">{%SeriesName} {%Value.Current}</font></b>]]></format>
14       </separated_tooltip>
15     </tooltip_settings>
16     <name><![CDATA[%D(5)]]></name>
17   </d_series>
01{
02  kPeriod: 15,
03  dPeriod: 5,
04  kSeries: {
05    type: "Line",
06    color: "#253992",
07    tooltipSettings: {
08      enabled: true,
09      separatedTooltip: {
10        format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} {%Value.Current}</font></b>"
11      }
12    },
13    name: "Stochastic: %K(15)"
14  },
15  dSeries: {
16    type: "Line",
17    color: "#DB2A0E",
18    tooltipSettings: {
19      enabled: true,
20      separatedTooltip: {
21        format: "{%SeriesIcon} <b><font color=\"%Color\">{%SeriesName} {%Value.Current}</font></b>"
22      }
23    },
24    name: "%D(5)"
25  }
26}

Here is a live sample where the tooltips are disabled for all the indicator series in one chart and configured for the other:

Live Sample:  Separated Tooltip for Technical Indicators

Find out more about technical indicator settings in Technical Indicator Settings.

to top

Series Icon

When you use the {%SeriesIcon} token in the tooltip formatting string, it is replaced with an icon. By default, the icon is a square of 8x8 pixels. You can configure an icon for each series: shape, size, fill and border.

Here is a sample XML syntax for configuring an icon:

XML/JSON Syntax
Plain code
01 <series color="#FF0000">
02   <tooltip_settings>
03     <separated_tooltip>
04       <icon type="Diamond" size="10">
05         <fill type="Solid" color="%Color" opacity="1" />
06         <border color="DarkColor(%Color)" opacity="0.8" />
07       </icon>
08     </separated_tooltip>
09   </tooltip_settings>
10 </series>
01{
02  color: "#FF0000",
04    separatedTooltip: {
05      icon: {
06        type: "Diamond",
07        size: 10,
08        fill: {
09          type: "Solid",
10          color: "%Color",
11          opacity: 1
12        },
13        border: {
14          color: "DarkColor(%Color)",
15          opacity: 0.8
16        }
17      }
18    }
19  }
20}

As you can see here:

The icon color is set with the %Color token. The value of this token comes from the color attribute of the series. You can use the color transform options described in the Color article or use a static color like <fill color="#55DD00"/>.

The size attribute defines the icon width and height in pixels.

The shape is defined with the type attribute. By default, it is set to "Square", but you can use any of the shapes listed below:

Type
Circle
Square
Diamond
Cross
DiagonalCross
HLine
VLine
Star4
Star5
Star6
Star7
TriangleUp
TriangleDown

Here is a live sample of the tooltips with different icons in different series:

Live Sample:  Separated Tooltip - Labels Icon Settings

to top

Color Tokens

As it has been said, tooltip text can be configured using HTML formatting. To set up the color, we use the color part of the text <font> tag. For example: <font color="#FF0000">{%Value.Current}</font>.

You can use either a constant color or color tokens.

There are two color tokens you can take advantage of:

Here is an XML sample demonstrating the use of the {%Color} token. In this sample, the text is colored to the series color:

XML/JSON Syntax
Plain code
03     <format><![CDATA[<font color="%Color">{%SeriesName} {%Value}</font>]]></format>
04   </separated_tooltip>
01{
03    format: "<font color=\"%Color\">{%SeriesName} {%Value}</font>"
04  }
05}

Here is an XML sample demonstrating the use of the {%ChangeColor} token. In this sample, the text is either Green or Red - depending on the value:

XML/JSON Syntax
Plain code
01 <chart>
02   <series_list>
03     <series>
04       <tooltip_settings>
05         <separated_tooltip>
06           <format><![CDATA[<font color="%ChangeColor">{%ValueChange.Current}</font>]]></format>
07         </separated_tooltip>
08       </tooltip_settings>
09     </series>
10   </series_list>
11 </chart>
01{
02  seriesList: [
03    {
04      tooltipSettings: {
05        separatedTooltip: {
06          format: "<font color=\"%ChangeColor\">{%ValueChange.Current}</font>"
07        }
08      }
09    }
10  ]
11}

The live sample below demonstrates how the {%Color} and {%ChangeColor} tokens can be used:

Live Sample:  Separated Tooltip - Working with Color Tokens

to top

Falling/Rising Icons

Besides coloring the changes, you can show them as icons: red arrow down or green arrow up. These icons can be added to the tooltip with the {%ChangeIcon} token.

{%ChangeIcon} has Current, First, Last, FirstVisible and LastVisible properties that define which value change is to be shown, and you should always specify the property when using this token. As a matter of fact {%ChangeIcon} is similar to {%ValueChange} and {%PercentValueChange}, except that it shows only the trend.

Here is an XML sample for adding these icons to the tooltip text:

XML/JSON Syntax
Plain code
03     <format><![CDATA[{%SeriesIcon} {%SeriesName} {%ChangeIcon} {%ValueChange}]]></format>
04   </separated_tooltip>
01{
03    format: "{%SeriesIcon} {%SeriesName} {%ChangeIcon} {%ValueChange}"
04  }
05}

The visual appearance of the icons can be configured too; you can customize the size, fill and border.

Here is an XML sample for that:

XML/JSON Syntax
Plain code
01 <?xml version="1.0" encoding="UTF-8"?>
02 <stock xmlns="http://anychart.com/products/stock/schemas/1.9.0/schema.xsd">
03   <settings>
04     <tooltip_settings>
05       <separated_tooltip>
06         <falling_rising_icons size="12">
07           <falling>
08             <fill enabled="true" color="#CC3300" opacity="1" />
09             <border enabled="false" />
10           </falling>
11           <rising>
12             <fill color="Green" opacity="1" />
13             <border enabled="false" />
14           </rising>
15         </falling_rising_icons>
16         <format><![CDATA[{%SeriesIcon} {%SeriesName} {%ChangeIcon} {%ValueChange}]]></format>
17       </separated_tooltip>
18     </tooltip_settings>
19   </settings>
20 </stock>
01{
02  settings: {
03    tooltipSettings: {
04      separatedTooltip: {
05        fallingRisingIcons: {
06          size: 12,
07          falling: {
08            fill: {
09              enabled: true,
10              color: "#CC3300",
11              opacity: 1
12            },
13            border: {
14              enabled: false
15            }
16          },
17          rising: {
18            fill: {
19              color: "Green",
20              opacity: 1
21            },
22            border: {
23              enabled: false
24            }
25          }
26        },
27        format: "{%SeriesIcon} {%SeriesName} {%ChangeIcon} {%ValueChange}"
28      }
29    }
30  }
31}

The live sample below demonstrates configuring icons:

Live Sample:  Separated Tooltip - Using Falling and Rising Icons

to top