Skip to content

Commit

Permalink
Fix: make plotly charts have unbounded hoverlabel name length (#5661)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevenhao authored Jan 19, 2022
1 parent 965db26 commit 8ef9a1d
Show file tree
Hide file tree
Showing 10 changed files with 30 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@
"type": "linear",
"autorange": true,
"range": null
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@
"range": null,
"overlaying": "y",
"side": "right"
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@
"type": "linear",
"autorange": true,
"range": null
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
"range": null,
"overlaying": "y",
"side": "right"
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@
"type": "linear",
"autorange": true,
"range": null
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@
"type": "linear",
"autorange": true,
"range": null
},
"hoverlabel": {
"namelength": -1
}
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"legend": {
"traceorder": "normal"
},
"hoverlabel": {
"namelength": -1
},
"annotations": [
{
"x": 0.24,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"legend": {
"traceorder": "normal"
},
"hoverlabel": {
"namelength": -1
},
"annotations": []
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
"legend": {
"traceorder": "normal"
},
"hoverlabel": {
"namelength": -1
},
"annotations": [
{
"x": 0.49,
Expand Down
3 changes: 3 additions & 0 deletions viz-lib/src/visualizations/chart/plotly/prepareLayout.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,9 @@ export default function prepareLayout(element: any, options: any, data: any) {
legend: {
traceorder: options.legend.traceorder,
},
hoverlabel: {
namelength: -1,
},
};

switch (options.globalSeriesType) {
Expand Down

0 comments on commit 8ef9a1d

Please sign in to comment.