ASE Home Page Products Download Purchase Support About ASE
ChartDirector Support
Forum HomeForum Home   SearchSearch

Message ListMessage List     Post MessagePost Message

  Multiple graphs to fit on screen
Posted by Megha on Dec-04-2014 20:45
Attachments:
Hello Peter

I have eight graphs on a single screen ,but they are not properly fitting on the screen. Is
there any method in ChartDirector which makes all the graphs to have equal size and they
all fit on screen altogether. I don't want to use scroll bar to see all the graphs.I'm using
java.

My graphs are
Multiple graphs.docx
Multiple graphs.docx

121.08 Kb

  Re: Multiple graphs to fit on screen
Posted by Peter Kwan on Dec-05-2014 03:27
Hi Megha,

I am not exactly sure how you would like to fit the charts on the "screen". From your screen
shot, it looks like it is a web application. Whether a scroll bar appears depends on the
browser window size, and also on the size of your web page. Note that the size of your web
page is not the same as the size of the charts, as your web page can contain other
contents as well.

In any case, the graph size is determined by your code. If you want all graphs to have the
equal size, please write code that creates all charts at the same size. If you want all the
charts to fit on the browser window, you can first write code to detect the browser window
size, then create the charts at the proper size so that they fit on the browser window.

In practice, I think most people will design a web page assuming a fixed width, especially
those with a lot of images. For example, when I look at the Yahoo web site, I found that it
will have horizontal scroll bar if the browser window is less than around 950 pixels. If the
browser window is very wide, their contents will still be only 1100 pixels wide even and is
centered in the middle. May be you can use the similar method - simply design the page
assuming a fixed width (eg. 950 pixels). If the user sets the browser window to a small
width, it is hard to avoid the scroll bar anyway, so it may be acceptable to have scroll bars
for small window size.

Regards
Peter Kwan