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

Refactor to use holoviews powered bar charts #494

Conversation

AjayThorve
Copy link
Member

@AjayThorve AjayThorve commented Jun 20, 2023

This PR refactors the bokeh charts implementation, and uses holoviews to generate the charts, while also using box-selects instead of range_sliders. This was done for 2 reasons, stability of holoviews api, which also is much more efficient, and to use streams + custom callbacks to link all charts with bar_charts.

Some of the other notable changes:

  • Using holoviews to generate bokeh plots, allows us to str columns directly for bar charts
  • Persistent non-selection view for bar_charts
  • Got rid of redundant bokeh line chart, and now a single implementation exists under datashader/line, callable cuxfilter.charts.line
  • removed preview as pyppeteer was unstable
  • Refactor to remove redundant functions and classes

Copy link
Member

@exactlyallan exactlyallan left a comment

Choose a reason for hiding this comment

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

Lot of changes! Whats the quick rational for removing the bokeh line chart?

@AjayThorve AjayThorve removed the doc Documentation label Aug 4, 2023
@github-actions github-actions bot added the doc Documentation label Aug 4, 2023
@AjayThorve AjayThorve removed the doc Documentation label Aug 4, 2023
@AjayThorve
Copy link
Member Author

AjayThorve commented Aug 4, 2023

Lot of changes! Whats the quick rational for removing the bokeh line chart?

Updated the description,

Adding to it: The current implementation had two line charts, one under bokeh, and another under datashader. Removed one to avoid confusion, and bokeh line's implementation that cuxfilter had wasn't really accomplishing anything that bar charts weren't.

@github-actions github-actions bot added the doc Documentation label Aug 4, 2023
@AjayThorve AjayThorve removed the doc Documentation label Aug 4, 2023
@github-actions github-actions bot added the doc Documentation label Aug 4, 2023
@AjayThorve AjayThorve removed the doc Documentation label Aug 4, 2023
@AjayThorve
Copy link
Member Author

/merge

@github-actions github-actions bot added the doc Documentation label Aug 4, 2023
@AjayThorve AjayThorve removed the doc Documentation label Aug 4, 2023
@AjayThorve AjayThorve mentioned this pull request Aug 4, 2023
@rapids-bot rapids-bot bot merged commit 8827cbb into rapidsai:branch-23.08 Aug 4, 2023
24 checks passed
raydouglass pushed a commit that referenced this pull request Aug 4, 2023
Follow up to #494, updates API docs and screenshots.

cc @exactlyallan

Authors:
   - Ajay Thorve (https://github.com/AjayThorve)

Approvers:
   - Allan (https://github.com/exactlyallan)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conda improvement Improvement / enhancement to an existing function non-breaking Non-breaking change Python
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants