juba / pyobsplot

Observable Plot in Jupyter notebooks and Quarto documents
https://juba.github.io/pyobsplot/
MIT License
184 stars 8 forks source link

Syntax error in documentation #11

Closed ahairshi closed 1 year ago

ahairshi commented 1 year ago

A comma is missing in below lines of code after color object.

Plot.plot(
    {
        color: {legend: true} #comma missing here
        grid: false,
        marks: [Plot.dot(data, {x: "x", y: "y", fill: "type", r: 5})]
    }
)
op({
    "color": {"legend": True} #missig comma here as well
    "grid": False,
    "marks": [Plot.dot(data, {"x": "x", "y": "y", "fill": "type", "r": 5})],
})

https://juba.github.io/pyobsplot/usage.html

juba commented 1 year ago

You're right ! This should be fixed, thanks for taking the time to report the issue.