-
Notifications
You must be signed in to change notification settings - Fork 12
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
DM-14774 Plotly upgrade #627
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only in Safari=> AllWISE source catalog, m51, 2500+ radius. Page will not load. A problem repeatedly occurred ...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is really exciting. ScatterGL performance is really good. I especially like that it can be mixed with SVG traces in the same chart. This is a good improvement.
maxRowsForScatter: 5000, // maximum table rows for scatter chart support | ||
maxRowsForScatter: undefined, // maximum table rows for scatter chart support, undefined means unlimited | ||
maxRowsForDefaultScatter: 5000, // maximum table rows for which the default chart is scatter, heatmap is created for larger tables | ||
minScatterGLRows: 1000, // minimum number of points to use WebGL 'scattergl' instead of SVG 'scatter' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it still desirable to switch to heatmap on large scatter now that we can display large scatter using GL?
I'm trying this search in latest Firefox but chart doesn't load: |
Running in Chrome Version 67.0.3396.62 (Official Build) (64-bit) |
I also tried on FireFox Quantum (60.0.2 (64-bit), the same search and scatter plot without any issue. |
I have updated IrsaViewer.js and irsaviewer/ts.html to make sure the chart behavior stays as before: no WebGL for now. In Firefly, we'll use WebGL for all scatters with more than 1000 points to make sure WebGL gets tested. |
@tgoldina , shouldn't it be irsaviewer.html and app.html in ./ife/src/irsa as well? finderchart is using app.html and irsaviewer.html is also used in ops. |
There are no chart options in app.html and irsaviewer.html. I assume they get picked up from IrsaViewer.js Please correct me if I am wrong. |
@tgoldina , so yes irsaviewer.html and ts.html uses IrsaViewer.js. However, app.html uses IrsaEntry.js. Just wanted to remind you all of the involved files. I don't know if they need to be modify or not. |
Thank you. Updated IrsaEntry.js too. |
https://jira.lsstcorp.org/browse/DM-14774
Deployment: https://irsawebdev9.ipac.caltech.edu/dm-14774/firefly/
Updated chart options (with firefly defaults):
To use Plotly.react instead of our own optimizations, set in console
sessionStorage.setItem('plotlyReact', true)
To see plot render time use
firefly.debug = true
@ejoliet please review the numbers above - would you like any changes for irsa apps?
There is a separate pull request for ife.
scattergl is up to 10x faster on restyle, hence I am switching behind the scenes to scattergl for more than 1000 rows, and back when it's less than 1000 rows. (The number comes from minScatterGLRows property above.) It looks like scatter and scattergl traces now work together, so there is no issue of mixing them up. Error bars are not well supported in scattergl (they tend to disappear on relayout), so I felt that we still want to use SVG version of scatter for smaller charts.