8000 Merge branch 'dev-tooltip' of plotly.js:kb-/plotly.js into dev-tooltip · kb-/plotly.js@723276c · GitHub
[go: up one dir, main page]

Skip to content

Commit 723276c

Browse files
committed
Merge branch 'dev-tooltip' of plotly.js:kb-/plotly.js into dev-tooltip
2 parents 4744a1f + 47f4925 commit 723276c

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

README.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,13 @@
44
[![circle ci](https://circleci.com/gh/plotly/plotly.js.png?&style=shield&circle-token=1f42a03b242bd969756fc3e53ede204af9b507c0)](https://circleci.com/gh/plotly/plotly.js)
55
[![MIT License](https://img.shields.io/badge/License-MIT-brightgreen.svg)](https://github.com/plotly/plotly.js/blob/master/LICENSE)
66

7-
This branch introduces a tooltip feature and modebar button. It allows to add an annotation to every clicked point.
8-
When a plot is created with `editable: true`, the tooltips can be dragged around or deleted.
7+
This branch introduces a tooltip feature that can be activated by a new modebar button. It allows to add an annotation to every clicked point.
8+
By default, tooltips contain x and y coordinates. They can be customized to contain any additional data attached to the trace or points, which makes it a powerful tool for data exploration and presentation.
9+
10+
When a plot is created with `editable: true`, the tooltips can be dragged around or deleted interactively. Their text can also be edited.
911
To delete a tooltip, click on its text and delete it.
1012

11-
tooltips can be customized with an optional `tooltiptemplate` (possibilities equivalent to [hovertemplate](https://plotly.com/javascript/reference/scatter/#scatter-hovertemplate)) and `tooltip` annotation options (possibilities equivalent to [annotations](https://plotly.com/javascript/text-and-annotations/))
13+
Tooltips can be customized with an optional `tooltiptemplate` (possibilities equivalent to [hovertemplate](https://plotly.com/javascript/reference/scatter/#scatter-hovertemplate)) and `tooltip` annotation options (possibilities equivalent to [annotations](https://plotly.com/javascript/text-and-annotations/))
1214
![image](https://github.com/kb-/plotly.js/assets/2260417/f7258b47-6eb2-4c3c-a3ce-f23899fe57e1)
1315

1416
This update is compatible with Dash when a figure is created with a Dictionary passed to dcc.Graph (see example in *demo* folder), but not yet with Plotly.py (its implementation enforces a limited set of properties).

0 commit comments

Comments
 (0)
0