Added missing hoverinfo type permutations

This commit is contained in:
Drew Diamantoukos
2018-05-18 14:35:36 -04:00
parent 0e3cd2e17c
commit 82dfbee722

View File

@@ -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[];