Skip to content

Commit c288bc2

Browse files
(DOCSP-9962): Add tooltip detail for scatter charts (#355)
1 parent cc76d59 commit c288bc2

File tree

3 files changed

+29
-6
lines changed

3 files changed

+29
-6
lines changed

source/chart-type-reference/geospatial-scatter.txt

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,21 @@ sizes.
8484
If no fields are encoded in the :guilabel:`Size` encoding channel,
8585
|charts-short| displays all points with the same size.
8686

87+
Tooltip Detail
88+
~~~~~~~~~~~~~~
89+
90+
*(Optional)* The :guilabel:`Tooltip Detail` encoding channel adds
91+
the value of the selected field to each data point's tooltip. To
92+
view a data point tooltip, hover over that point in the chart.
93+
94+
In addition to the :guilabel:`Tooltip Detail` field, the tooltip also
95+
shows other fields used to construct the chart.
96+
97+
For example, the following chart encodes the :guilabel:`Summary`
98+
field as a :guilabel:`Tooltip Detail`:
99+
100+
.. figure:: /images/charts/geospatial-scatter-tooltip-example.png
101+
87102

88103
Build a Geospatial Scatter Chart
89104
--------------------------------

source/chart-type-reference/scatter-chart.txt

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,23 @@ Scatter charts provide the following :ref:`encoding channels
4141

4242
* - Color
4343
- *(Optional)* A :guilabel:`category` encoding channel that changes
44-
the color of the data point markers to indicate a corresponding
45-
data value. |charts| lists the colors used in a key to the right of
46-
the chart.
44+
the color of the data point markers based on the value of the
45+
selected field. |charts| lists the colors used in a key to the
46+
right of the chart.
4747

4848
* - Shape
4949
- *(Optional)* A :guilabel:`category` encoding channel that changes
50-
the shape of the data point markers to indicate a corresponding
51-
data value. |charts| lists the shapes used in a key to the right of
52-
the chart.
50+
the shape of the data point markers based on the value of the
51+
selected field. |charts| lists the shapes used in a key to the
52+
right of the chart.
53+
54+
* - Tooltip Detail
55+
- *(Optional)* A :guilabel:`category` encoding channel that adds
56+
the value of the selected field to each data point's tooltip. To
57+
view a data point tooltip, hover over that point in the chart.
58+
59+
In addition to the :guilabel:`Tooltip Detail` field, the tooltip
60+
also shows other fields used to construct the chart.
5361

5462
Use Cases
5563
---------
2.3 MB
Loading

0 commit comments

Comments
 (0)