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

BrushContainer doesn't work properly with scale='time' #1560

Closed
4 of 6 tasks
Zegoverno opened this issue May 7, 2020 · 3 comments
Closed
4 of 6 tasks

BrushContainer doesn't work properly with scale='time' #1560

Zegoverno opened this issue May 7, 2020 · 3 comments

Comments

@Zegoverno
Copy link

Zegoverno commented May 7, 2020

Bugs and Questions

Checklist

  • This is not a victory-native specific issue. (Issues that only appear in victory-native should be opened here)

  • I have read through the FAQ and Guides before asking a question

  • I am using the latest version of Victory

  • I've searched open issues to make sure I'm not opening a duplicate issue

The Problem

Describe the issue you're seeing, and what you expect the behavior to be.

Reproduction

Please try to reproduce the issue you're seeing in a sandbox. You can fork this sandbox to get started.

If you can't reproduce your issue in a sandbox, please create a minimal git repo that demonstrates the problem you're seeing. Include instructions for installing and reproducing your error.

Feature Requests

Checklist

  • I've read through the Docs and Guides to make sure this functionality doesn't already exist

  • I've searched open issues to make sure I'm not opening a duplicate issue

Description

Please describe the feature you're requesting in detail.

@Zegoverno
Copy link
Author

I have a timeserie dataset and I tried to merge the Brush and Zoom example with the Zoom on Large Dataset.

The ZoomContainer works properly. But the BrushContainer returns a domain.x different from the ZoomContainer, the zoomcontainer returns the actual date but the brushcontainer returns the index of the data array, which broke the application.

My solution was to convert the date back to number, takeoff the scale='time' from the brushcontainer and apply the format this number back to date with tickformat.

For now it is working but I lose the nice feature that display from years to weekday when zooming.

@jim-r-martin
Copy link

I am seeing a similar issue where the domain for my chart no longer auto scales for the x domain (which is timestamps) as it did in 34.1.3 . The domain now scales from 0 to my largest timestamp, which skews all of my data to the far right of the graph. I think it has to do with the update released yesterday. I saw some commits that looked like they were impacting the domain but can't put my finger on which one it was.

@becca-bailey
Copy link
Contributor

Closing in favor of #2111

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

No branches or pull requests

3 participants