From b78fbc91cc19f435c8dd3756967480fe49d47ae8 Mon Sep 17 00:00:00 2001 From: Ryan Finnie Date: Wed, 22 Feb 2023 05:40:27 -0800 Subject: [PATCH] Expand documentation for ChartMarked event (#4738) --- docs/events/index.rst | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/docs/events/index.rst b/docs/events/index.rst index 4289ca425..8a882596f 100644 --- a/docs/events/index.rst +++ b/docs/events/index.rst @@ -610,9 +610,13 @@ ChartMarked Payload: - * ``type``: the marking's ID. Built-in types are ``print``, ``done``, ``cancel``, ``pause``, and ``resume``. Plugins may set arbitrary types - * ``label``: the human-readable short label of the marking - * ``time``: the epoch time of marking + * ``type``: The marking's ID. Built-in types are ``print``, ``done``, ``cancel``, ``pause``, and ``resume``. + Plugins may set arbitrary types, which should be prefixed, e.g. ``pluginname_eventtype``. In the UI, the type + ID is used to stylize the marking label. + * ``label``: The human-readable short label of the marking, ideally one short word. Optional but recommended; if + not specified, the UI will display the ``type``. The label may be localized in the UI. + * ``time``: The epoch time of marking. Defaults to the event fire time if not specified. Plugins may set a time + in the past if it makes sense for the event. .. versionadded:: 1.9.0