Skip to content

Conversation

@vbabich
Copy link
Contributor

@vbabich vbabich commented Sep 5, 2025

No description provided.

@vbabich vbabich self-assigned this Sep 5, 2025
@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

import type { dh as DhType } from '@deephaven/jsapi-types';
import { Formatter } from '@deephaven/jsapi-utils';
import { Delta } from 'plotly.js-dist-min';
import Plotly, { type Delta } from 'plotly.js';
Copy link
Contributor Author

Choose a reason for hiding this comment

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

For some reason I was getting errors from npm run types:

plugins/plotly-express/src/js/src/PlotlyExpressChartUtils.test.ts:372:23 - error TS2345: Argument of type 'Plotly.Data[]' is not assignable to parameter of type 'import("/Users/vladbabich/dev/deephaven-plugins/plugins/plotly-express/src/js/node_modules/@types/plotly.js/index").Data[]'.
  Type 'Plotly.Data' is not assignable to type 'import("/Users/vladbabich/dev/deephaven-plugins/plugins/plotly-express/src/js/node_modules/@types/plotly.js/index").Data'.
    Type 'Partial<PlotData>' is not assignable to type 'Data'.
      Type 'Partial<PlotData>' is not assignable to type 'Partial<PlotData> | Partial<BoxPlotData>'.
        Type 'Partial<PlotData>' is not assignable to type 'Partial<BoxPlotData>'.
          Types of property 'type' are incompatible.
            Type 'PlotType | undefined' is not assignable to type '"box" | undefined'.
              Type '"bar"' is not assignable to type '"box"'.

372     setWebGlTraceType(data, true, webGlTraceIndices);

Had to update this import to fix the types.

@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

@vbabich vbabich marked this pull request as ready for review September 24, 2025 18:42
@vbabich vbabich requested a review from mofojed September 24, 2025 18:42
@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

1 similar comment
@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

Comment on lines +984 to +990
get isRootRowExpanded(): boolean {
return this._isRootRowExpanded;
}

set isRootRowExpanded(value: boolean) {
this.pendingIsRootRowExpanded = value;
}
Copy link
Member

Choose a reason for hiding this comment

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

Hrmmm so we allow setting the property, but the value we return is still going to be the old value until the next pivot update is received... is there no way to derive this state from the viewport data itself/looking at the keys and such? Seems kind of gross to have to track an intermediate variable.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

The viewport data doesn't have an indication of the root row/column state. I asked about this in the Pivots Slack channel on Sept. 11, Colin suggested the client could keep track of the state.

@vbabich vbabich requested a review from mofojed September 30, 2025 14:01
@github-actions
Copy link

plotly-express docs preview (Available for 14 days)

@vbabich vbabich merged commit ac5d6f5 into deephaven:main Oct 2, 2025
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants