File tree Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Expand file tree Collapse file tree 2 files changed +32
-1
lines changed Original file line number Diff line number Diff line change @@ -76,6 +76,7 @@ def run(self):
76
76
ygap = 5 ,
77
77
customdata = np .array (hoverdata ),
78
78
hovertemplate = self .HOVER_TEMPLATE ,
79
+ name = "" , # Set the trace name to an empty string to remove "trace 0" from hoverbox
79
80
colorbar = {
80
81
'orientation' : 'h' ,
81
82
'y' : 0 ,
@@ -113,7 +114,12 @@ def run(self):
113
114
yaxis_title = "Locale" ,
114
115
yaxis_autorange = "reversed" ,
115
116
)
116
- div = plot (fig , output_type = "div" , include_plotlyjs = True )
117
+ div = plot (
118
+ fig ,
119
+ output_type = "div" ,
120
+ include_plotlyjs = True ,
121
+ config = {"displayModeBar" : False },
122
+ )
117
123
return [nodes .raw ("" , div , format = "html" )]
118
124
119
125
def setup (app ):
Original file line number Diff line number Diff line change @@ -419,6 +419,31 @@ th {
419
419
padding : 8px ; /* Add some padding for better readability */
420
420
}
421
421
422
+ /* -------------- */
423
+ /* Plotly Heatmap */
424
+ /* -------------- */
425
+
426
+ .plotly svg {
427
+ g : not (.heatmap-label ) > text {
428
+ fill : var (--pst-color-text-base ) !important ;
429
+ }
430
+
431
+ @media (max-width : 540px ) {
432
+ g .heatmap-label > text {
433
+ display : none;
434
+ }
435
+ }
436
+ }
437
+
422
438
/* ----------------- */
423
439
/* Language Selector */
424
440
/* ----------------- */
441
+
442
+ /* Hide the left-side column for pages marked as orphan */
443
+ .orphan .bd-sidebar {
444
+ display : none !important ;
445
+ }
446
+
447
+ .orphan .bd-main {
448
+ margin-left : 0 !important ;
449
+ }
You can’t perform that action at this time.
0 commit comments