Skip to content

Commit 3326cb6

Browse files
iynehzandrei-ng
authored andcommitted
add customdata to HeatMap
1 parent d6326fc commit 3326cb6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

plotly/src/traces/heat_map.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use crate::{
77
common::{
88
Calendar, ColorBar, ColorScale, Dim, HoverInfo, Label, LegendGroupTitle, PlotType, Visible,
99
},
10+
private::NumOrStringCollection,
1011
Trace,
1112
};
1213

@@ -71,6 +72,11 @@ where
7172
color_scale: Option<ColorScale>,
7273
#[serde(rename = "connectgaps")]
7374
connect_gaps: Option<bool>,
75+
/// Assigns extra data each datum. This may be useful when listening to
76+
/// hover, click and selection events. Note that, "scatter" traces also
77+
/// appends customdata items in the markers DOM elements
78+
#[serde(rename = "customdata")]
79+
custom_data: Option<NumOrStringCollection>,
7480
#[serde(rename = "hoverinfo")]
7581
hover_info: Option<HoverInfo>,
7682
#[serde(rename = "hoverlabel")]

0 commit comments

Comments
 (0)