RBVI / CyPlot

3 stars 3 forks source link

Bar chart return empty page #2

Closed yihangx closed 3 years ago

yihangx commented 3 years ago

Bar chart work in plot editor, but it return empty page when open without plot editor. Screen Shot 2021-08-25 at 11 36 32 AM

yihangx commented 3 years ago

Tried both GUI and the command line. Not working.

yihangx commented 3 years ago

https://github.com/RBVI/CyPlot/blob/d27361003a94a525ffbe3a28ac222d8a676f68ac/src/main/java/edu/ucsf/rbvi/cyPlot/internal/utils/JSUtils.java#L326

https://github.com/RBVI/CyPlot/blob/d27361003a94a525ffbe3a28ac222d8a676f68ac/src/main/java/edu/ucsf/rbvi/cyPlot/internal/utils/JSUtils.java#L327

These two lines of code called getClickCode() and getLassoCode(), which generated two extra tag inside the script tag. After modifying these two method, extra tags are deleted.