diff --git a/types/plotly.js/index.d.ts b/types/plotly.js/index.d.ts index ac35dc064b..4089505394 100644 --- a/types/plotly.js/index.d.ts +++ b/types/plotly.js/index.d.ts @@ -386,7 +386,16 @@ export interface ScatterData { 'marker.colorbar': {}; // TODO mode: 'lines' | 'markers' | 'text' | 'lines+markers' | 'text+markers' | 'text+lines' | 'text+lines+markers' | 'none'; hoveron: 'points' | 'fills'; - hoverinfo: 'text'; + hoverinfo: 'all' | 'none' | 'skip' | + 'x' | 'x+text' | 'x+name' | + 'x+y' | 'x+y+text' | 'x+y+name' | + 'x+y+z' | 'x+y+z+text' | 'x+y+z+name' | + 'y+x' | 'y+x+text' | 'y+x+name' | + 'y+z' | 'y+z+text' | 'y+z+name' | + 'y+x+z' | 'y+x+z+text' | 'y+x+z+name' | + 'z+x' | 'z+x+text' | 'z+x+name' | + 'z+y+x' | 'z+y+x+text' | 'z+y+x+name' | + 'z+x+y' | 'z+x+y+text' | 'z+x+y+name'; fill: 'none' | 'tozeroy' | 'tozerox' | 'tonexty' | 'tonextx' | 'toself' | 'tonext'; fillcolor: string; legendgroup: string; @@ -394,6 +403,12 @@ export interface ScatterData { connectgaps: boolean; } +/* +Any combination of "x", "y", "z", "text", "name" joined with a "+" OR "all" or "none" or "skip". +examples: "x", "y", "x+y", "x+y+z", "all" +default: "all" +*/ + export interface ScatterMarker { symbol: string | string[]; // Drawing.symbolList color: Color | number[];