Skip to content

Bug: fail to parse NaN in JSON, which fails in the browser #67

Description

@JosephBARBIERDARNAL
import seaborn as sns
from plotjs import PlotJS

sns.set_theme(style="white")

# Load the example mpg dataset
mpg = sns.load_dataset("mpg")

# Plot miles per gallon against horsepower with other semantics
sns.relplot(
    x="horsepower",
    y="mpg",
    hue="origin",
    size="weight",
    sizes=(40, 400),
    alpha=0.5,
    palette="muted",
    height=6,
    data=mpg,
)

PlotJS().add_tooltip(labels=mpg["horsepower"]).show()

Uncaught SyntaxError: JSON.parse: unexpected character at line 1 column 2245 of the JSON data

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions