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

tooltip_align (and other) with multipe charts #71

Open
fglueck opened this issue Sep 23, 2022 · 1 comment
Open

tooltip_align (and other) with multipe charts #71

fglueck opened this issue Sep 23, 2022 · 1 comment
Assignees

Comments

@fglueck
Copy link

fglueck commented Sep 23, 2022

At first, great feature!

I generate 3 charts and fetch them with: $graph->fetch(..., false, true);
After this I output the JS with: Goat1000\SVGGraph\SVGGraph::fetchJavascript();

The first charts are configured with
'tooltip_align' => 'left',

the last one with:
'tooltip_align' => 'center',

but, on screen, all are left, so only the first config will be consider.
After looking in tooltip.txt, I think this problem will be apply with other settings, too.

@goat1000 goat1000 self-assigned this Sep 23, 2022
@goat1000
Copy link
Owner

goat1000 commented Sep 23, 2022

This wasn't a problem when you had to use <object> or <embed> to add SVG to a page because each graph would contain its own Javascript, but with SVG inside the HTML now it does mean that the graphs have to share settings.

I'll add it to my list of things to think about, but it will require quite a lot of rewriting.

Edit: you can still use <object>, <embed> and <iframe> to use different settings, but it obviously isn't ideal.

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