We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
desired result: (Label in chart title is equal to one in selection box, and it is corresponding)
actual result:
Now I'm facing two different problems:
To solve problem 1, I think you need to put ensure_ascii=False for json.dumps at L463 in holoviews/plotting/widgets/__init__.py
ensure_ascii=False
json.dumps
holoviews/plotting/widgets/__init__.py
To solve second one, static_template at L64 in holoviews/plotting/renderer.py should be
static_template
holoviews/plotting/renderer.py
static_template = """ <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"/> {css} {js} </head> <body> {html} </body> </html> """
My code is here:
import pandas import holoviews import bokeh import hvplot.pandas print('pandas', pandas.__version__) print('holoviews', holoviews.__version__) print('bokeh', bokeh.__version__) holoviews.extension('bokeh') df = pandas.DataFrame({ 'a': ['あ', 'あ', 'あ', 'あ', 'あ', 'い', 'い', 'い', 'い', 'う', 'う', 'う'], 'b': [10, 11, 12, 11, 10, 20, 21, 22, 21, 31, 32, 31], 'c': [0, 1, 2, 1, 0, 0, -1, -2, -1, 1, 2, 3] }) line_plot_groupby = df.hvplot.line(x='c', y='b', groupby='a', dynamic=False) renderer = holoviews.renderer('bokeh') renderer.save(line_plot_groupby, 'line_plot_groupby')
pandas 0.25.0 holoviews 1.2.9.post67+g7dd50144 bokeh 1.3.1
The text was updated successfully, but these errors were encountered:
Thanks for the detailed bug report. Would you be willing to submit a PR for the fixes?
Sorry, something went wrong.
Actually nevermind, the widgets are about to be replaced entirely.
Thanks for your reply. I gave up submit PR for the fixes because it was really difficult to understand how my code should be tested.
Additionally, I think problem can be solved by two different approaches:
I don't know which approach is better for holoviews. So I just put issue.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Successfully merging a pull request may close this issue.
desired result:
(Label in chart title is equal to one in selection box, and it is corresponding)
actual result:
Now I'm facing two different problems:
To solve problem 1, I think you need to put
ensure_ascii=False
forjson.dumps
at L463 inholoviews/plotting/widgets/__init__.py
To solve second one,
static_template
at L64 inholoviews/plotting/renderer.py
should beMy code is here:
pandas 0.25.0
holoviews 1.2.9.post67+g7dd50144
bokeh 1.3.1
The text was updated successfully, but these errors were encountered: