Skip to content

Commit f29d27d

Browse files
committed
BUG: Fix Bokeh tooltip showing literal ' '
Noticed with Bokeh 2.2.1
1 parent aa6830b commit f29d27d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

backtesting/_plotting.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ def plot(*, results: pd.Series,
234234
return this.labels[index] || "";
235235
''')
236236

237-
NBSP = ' ' * 4
237+
NBSP = '\N{NBSP}' * 4
238238
ohlc_extreme_values = df[['High', 'Low']].copy(deep=False)
239239
ohlc_tooltips = [
240240
('x, y', NBSP.join(('$index',

0 commit comments

Comments
 (0)