I'm looking to enhance the tooltip by displaying additional data, but it's only showing %{customdata[0]}
instead of the actual value.
I've tried using customdata in the following way, but it doesn't seem to be working.
{
"name": "PARAM01_STEP_MEAN",
"type": "scatter",
"x": [
"2024-07-05 08:48:35",
"2024-07-05 08:48:46"
],
"y": [
"202.072",
"195.636"
],
"customdata": [
[
"LOT_20240705084818519",
"LOT_20240705084818519"
],
[
"WF#1",
"WF#1"
],
[
"RCP#_01",
"RCP#_01"
],
[
"2",
"1"
]
],
"hovertemplate": "<span>Sum Param: PARAM01_STEP_MEAN</span><br>\n<span>Sum Time: %{x}<span><br>\n<span>Lot ID: %{customdata[0]}</span></br>\n<span>Wafer ID: %{customdata[1]}</span></br>\n<span>Recipe ID: %{customdata[2]}</span></br>\n<span>Step ID: %{customdata[3]}</span></br>\n<span>Value: %{y}</span>\n<extra></extra>"
}