Skip to content

PlotlyChart not show #674

@Lefort-Antoine

Description

@Lefort-Antoine

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
`

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions