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

[Bug} graphGL + title and toolbox saveAsImage #505

Open
helgasoft opened this issue Sep 6, 2023 · 3 comments
Open

[Bug} graphGL + title and toolbox saveAsImage #505

helgasoft opened this issue Sep 6, 2023 · 3 comments

Comments

@helgasoft
Copy link

When there is a title or a graphic alongside the graph, the saved image (PNG/JPG) does not contain the graph.
Minimal Reproduction

@Dangdtx
Copy link

Dangdtx commented Sep 8, 2023

When the position is set to another position for the title, the problem mentioned above will be triggered.

@Dangdtx
Copy link

Dangdtx commented Sep 8, 2023

I tried zlevel layering to achieve the effect of downloading and displaying content, but I don't quite understand that the zlevel of the title needs to be set higher than the zlevel of the graphics to work properly. According to the general rule, the zlevel of the graphics should be higher At the zlevel of the title?

@helgasoft
Copy link
Author

good mention of title position - indeed, without title positioning the graph shows in the image.
Not only that, but title position is the graph position origin! So for left: '30%' the graph will be shifted 30% to the right, and for top: 'bottom' there won't be any graph in the image because it will disappear under the bottom 😄

Final recommendation: if your graph size is not too big and you need title and saveAsImage, then use type: 'graph', roam:true instead of type:' graphGL'.

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

2 participants