Click here to Skip to main content
13,549,157 members
Rate this:
 
Please Sign up or sign in to vote.
See more:
I have an issue where some labels for a pie chart are not generated unless the page is loaded in full screen. The labels are dynamically generated with JavaScript from a database. The pie chart itself also is generated from here, and loads perfectly fine at any resolution. I can’t find any differences in the code that produces the pie chart, to the code that produces the labels…

I don’t think the problem is related to media queries, as the content generates when the page is maximized, and then doesn’t disappear when the screen is reduced again. It only happens on initial page load if the page isn’t fullscreen.

Why/how is this happening? Any ideas?

What I have tried:

Looking at media queries, inspecting in multiple browsers (code generates at a larger resolution screen, but isn't generated beforehand)
Posted 2 days ago
Comments
Thaddeus-Jones 2 days ago
   
It would be useful to share your code :)
RedDK 2 days ago
   
Here's what I do when I'm in doubt about all things scalar-vector-graphic. Take the miscreant .svg, open it in whatever editor you're using to edit the graphic content and reduce it's complexity by deleting ... fluff.

OR ... create a new scalar vector graphic and paste WELL KNOWN misbehaving (xml) objects into it and save it as your ... new issue.

OR ... create a scalar vector graphic that behaves as expected using the javascript you've got.

Etc ...

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy |
Web04-2016 | 2.8.180515.1 | Last Updated 18 May 2018
Copyright © CodeProject, 1999-2018
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100