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

Fix bug with heatmap series show and hide by changing plot options #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

alodos
Copy link

@alodos alodos commented Oct 16, 2016

There are some bugs while redraw heatmap plot series with changing show<->hide.
The series of heatmap is visible when hide after show by setting options.

    // Here init plot with showing heatmap series...
    //...
    // Then try hide heatmap (may be switch style to other, bubbles, only points and other)
    plot.getData()[0].heatmap.show = false;  // for current data
    plot.getOptions().series.heatmap.show = false;  // for new data if need setData()
    plot.setupGrid();
    plot.draw();

Also this pull request fixes bug with backImage load when opt.series.heatmap.backImage is not used, but after plot redrawing (with set new data) (new Image).src will be set to null.
The browser tries to GET image with url=src=null from server.

PS: Minimized javascripts also updated but simple, by hand. Need correct rebuild from sources.

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

Successfully merging this pull request may close these issues.

1 participant