Closed chipkent closed 1 year ago
Was able to reproduce in a python console with:
from deephaven.plot.figure import Figure
from deephaven import empty_table
source = empty_table(20).update(["Letter = (i % 2 == 0) ? `A` : `B`", "X = 0.1 * i", "Y = randomDouble(0.0, 5.0)", "High = 10", "Low = 1"])
plot = Figure().plot_xy(series_name="Random numbers", t=source, x="X", y="Y", y_high="High", y_low="Low", by=["Letter"]).show()
Looks like in JsFigure.updateSubscriptions
it's only looking at regular series, but not subscribing to the multiSeries
which may also be present on a chart: https://github.com/deephaven/deephaven-core/blob/c708dc6cc4b393109355c5406f9d89d155113580/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsFigure.java#L378
Actually JsMultiSeries
should be creating individual JsSeries
and adding them to the chart: https://github.com/deephaven/deephaven-core/blob/c708dc6cc4b393109355c5406f9d89d155113580/web/client-api/src/main/java/io/deephaven/web/client/api/widget/plot/JsMultiSeries.java#L105
And that doesn't seem to be happening.
A snippet that has more errors bars to test with:
from deephaven.plot.figure import Figure
from deephaven import empty_table
source = empty_table(20).update(["Letter = (i % 2 == 0) ? `A` : `B`", "X = 0.1 * i", "Y = randomDouble(0.0, 5.0)", "High = Y + randomDouble(0.0, 1.0)", "Low = Y - randomDouble(0.0, 1.0)"])
plot = Figure().plot_xy(series_name="Random numbers", t=source, x="X", y="Y", y_high="High", y_low="Low", by=["Letter"]).show()
Groovy
ohlcPlotBy
never renders. It has a spinner.This was observed on v0.29 by @elijahpetty.
Browser logs: