By Steve Marshall - 9 Years Ago
|
Hi,
I have an application that is running fine in my development environment where I am running with a 1920x1080 screen resolution, and the application correctly rescales itself to the production environments and in most cases works fine. However, we have one reception screen which is running with a resolution of 1280x768 and this is causing havoc!!
I have dealt with most of the issues by altering font-sizes etc., but I have one final thing that I would like to sort to get me a little bit more real estate for the graph element. At the moment the associated legend is taking about 60% of the chart space (9 lines of data). I have altered the font size used in the legend, but this has had minimal effect on the space taken by the legend - just seemingly resulting in more whitespace between the rows.
Is there any way that the assigned RowHeight of the cells in the legend rows can be altered to that I can minimise/eliminate the whitespace?
Thanks, Steve
|
By Nevron Support - 9 Years Ago
|
Hi Steve,
Can you post a screenshot of the problematic chart so that we can check what can be done in this case?
|
By Steve Marshall - 9 Years Ago
|
As requested here is a screen clip of the section I am trying to deal with. The chart looks okay, but allocating more space to the chart rather than to the legend. If I make the font any smaller it becomes hard to read, so I was trying to reduce the whitespace between the rows ...
Thanks, Steve
|
By Nevron Support - 9 Years Ago
|
Hi Steve,
Thanks for posting the screenshot - you can decrease the cell margins and mark size in order to produce smaller row - for example:
nChartControl1.Legends[0].Data.CellMargins = new Nevron.GraphicsCore.NMarginsL(0); nChartControl1.Legends[0].Data.MarkSize = new Nevron.GraphicsCore.NSizeL(8, 8);
Hope this helps - let us know if you have any questions.
|
By Steve Marshall - 9 Years Ago
|
Thanks once again. I knew you must be able to do it, but I could not for the life of me find the right place to set the margins. I have done this now and it works a treat.
Steve
|