PlotlyChart not show #675
Unanswered
Lefort-Antoine
asked this question in
Q&A
Replies: 1 comment 2 replies
-
looks like the json transmitted is empty. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have problem using PlotlyChart on serveur. My error is a Vus.js error
"SyntaxError: JSON.parse: unexpected character at line 1 column 2 of the JSON data"
I suppose it is line 18 in templates/js/vue/plotlyjs.js :
const chart_obj = JSON.parse(this.$props.jp_props.chart);
It work running the app on local.
Do you have an idea?
here is the simple app:
`
import justy as jp
def demo_figure():
wp = jp.QuasarPage()
fig = go.Figure(
data=[go.Bar(x=[1, 2, 3], y=[1, 3, 2])],
layout=go.Layout(
title=go.layout.Title(text="A Figure Specified By A Graph Object")
)
)
jp.PlotlyChart(
a=wp.container,
style="max-width: 100%",
chart=fig,
)
return wp
`
Beta Was this translation helpful? Give feedback.
All reactions