Skip to content

Commit

Permalink
derive default yaxis serie from available columns instead of all columns
Browse files Browse the repository at this point in the history
  • Loading branch information
vieiralucas committed Jan 31, 2025
1 parent 4ee0816 commit 24079b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions apps/api/src/python/visualizations-v2.ts
Original file line number Diff line number Diff line change
Expand Up @@ -390,6 +390,9 @@ def _briefer_create_visualization(df, options):
totals = {}
for i, series in enumerate(y_axis["series"]):
if not series.get("column"):
continue
series_dataframe, capped = get_series_df(df, options, y_axis, series)
if capped:
too_many_data_points = True
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -236,9 +236,9 @@ function YAxisPickerV2(props: Props) {
? -1
: 0,
],
props.dataframe?.columns ?? []
columns
),
[props.dataframe]
[columns]
)

return (
Expand Down

0 comments on commit 24079b9

Please sign in to comment.