Skip to content
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

Merged
merged 7 commits into from
Nov 9, 2023

Conversation

mofojed
Copy link
Member

@mofojed mofojed commented Nov 2, 2023

  • Add support for MultiXYErrorBarSeries, MultiOHLCSeries. They weren't wired up at all
  • Report an error properly for MultiSeries types that are not supported
  • Change the JsFigure.getErrors() to be a @JsProperty instead
    • Currently not listed in the JS API and not used by the Web UI at all, so I think it's a reasonable change to make - not breaking an existing documented API.
    • This should be ported to Enterprise as well. I have branch bender_figure-errors pushed for this, ready to open up a PR for.
  • Fixes Groovy ohlcPlotBy never renders #4709
  • Tested using the code snippets in the ticket

- 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
@mofojed mofojed requested a review from niloc132 November 2, 2023 15:59
@mofojed mofojed self-assigned this Nov 2, 2023
Comment on lines +548 to +550
multiXYErrorBarSeries.lineColorSeriesNameTointMap(),
multiXYErrorBarSeries.lineColorSeriesNameToStringMap(),
multiXYErrorBarSeries.lineColorSeriesNameToPaintMap())));
Copy link
Member Author

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]));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe just array.slice?

Suggested change
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

@mofojed mofojed requested a review from niloc132 November 9, 2023 19:13
@mofojed mofojed merged commit 475b383 into deephaven:main Nov 9, 2023
10 checks passed
@mofojed mofojed deleted the 4709-ohlc-plotby-no-error branch November 9, 2023 21:46
@github-actions github-actions bot locked and limited conversation to collaborators Nov 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Groovy ohlcPlotBy never renders
2 participants