-
Notifications
You must be signed in to change notification settings - Fork 80
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add support for MultiXYErrorBarSeries, MultiOHLCSeries figures #4763
Conversation
- There was no error being recorded for unsupported multi series - Add JsProperty tag to JsFigure.getErrors so the UI can actually see the errors - Fixes deephaven#4709
- Wasn't wired up at all
- Wasn't wired up at all
multiXYErrorBarSeries.lineColorSeriesNameTointMap(), | ||
multiXYErrorBarSeries.lineColorSeriesNameToStringMap(), | ||
multiXYErrorBarSeries.lineColorSeriesNameToPaintMap()))); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A lot of these methods seem to be shared by all the AbstractPartitionedTableHandleMultiSeries
types, and could probably be cleaned up further. I haven't done that, as I didn't want to change too much in this change, and I'm not entirely sure how the autogenerated parts of these series works.
@@ -201,6 +203,8 @@ public Promise<JsFigure> refetch() { | |||
.map(chartDescriptor -> new JsChart(chartDescriptor, this)).toArray(JsChart[]::new); | |||
JsObject.freeze(charts); | |||
|
|||
errors = JsObject.freeze(descriptor.getErrorsList().asList().toArray(new String[0])); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
maybe just array.slice?
errors = JsObject.freeze(descriptor.getErrorsList().asList().toArray(new String[0])); | |
errors = JsObject.freeze(descriptor.getErrorsList().slice()); |
Also have to change the type of the field and the getter
plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java
Outdated
Show resolved
Hide resolved
plugin/figure/src/main/java/io/deephaven/figure/FigureWidgetTranslator.java
Outdated
Show resolved
Hide resolved
…anslator.java Co-authored-by: Colin Alworth <[email protected]>
…anslator.java Co-authored-by: Colin Alworth <[email protected]>
- Just use .slice()
@JsProperty
insteadbender_figure-errors
pushed for this, ready to open up a PR for.