Closed davidmichaelkarr closed 7 years ago
This is a chartjs problem related to browser scrollbars. What happens is the chart becomes tall enough to make the page have scrollbars which reduces the chart width which changes the height to remove scrollbars which changes the width, etc. You might be able to work around it by always having scrollbars.
I'll try and think of a good solution.
@simonbrunel any ideas?
I had just found that potential workaround a couple of minutes ago. It actually solves that particular problem, noting that having scrollbars on the screen isn't ideal.
However, this now creates another problem. Curiously, instead of "packing" each chart to fill each row (typically 13 charts, 4 per row in the first rows, with one left over), for some reason it's displaying 4 charts in the first and third rows, then in the second and fourth rows, the first two positions are blank. It still results in the one left over on the bottom row.
This particular test case is displaying on a larger monitor. Perhaps this is happening because some combination of bootstrap and chart.js is trying to use the entire display space, vertically in addition to horizontally. I guess I need to figure out how to be strict in using the available horizontal space, but allowing blank space in the vertical dimension.
Closing as duplicate of #2127
I have a small SPA displaying a set of charts on a page with a title, using Angular and angular-chart. It just renders as many charts as will fit on the page, in a fluid bootstrap container. When I display the page on my laptop, it works fine.
The target for this app is to display on a large monitor in kiosk mode. Just now I tried displaying it in chrome's kiosk mode, and it immediately went into an infinite resize loop (or at least I assume it's resizing). The effect is that the entire display is constantly flashing.
I don't know whether this is a bootstrap problem or a chart.js problem.
If it matters, the following is the HTML for the page: