Group: Forum Members
Last Active: 11 Years Ago
Posts: 1,
Visits: 1
|
Currently I'm trying to get my chart to fill the entire container width by using the following:
control.Width = Unit.Percentage(100); NCartesianChart chart = (NCartesianChart)control.Charts[0]; chart.Size = new NSizeL(new NLength(100, NRelativeUnit.ParentPercentage), new NLength(100, NRelativeUnit.ParentPercentage));
DIV id=Chart style="OVERFLOW: visible; FONT-SIZE: 0px; HEIGHT: 400px; POSITION: relative; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; WIDTH: 100px"
If I change to control.Width = Unit.Percentage(50);
DIV id=Chart style="OVERFLOW: visible; FONT-SIZE: 0px; HEIGHT: 400px; POSITION: relative; PADDING-BOTTOM: 0px; PADDING-TOP: 0px; PADDING-LEFT: 0px; MARGIN: 0px; PADDING-RIGHT: 0px; WIDTH: 50px"
It seems the issue is the control seems to be generating the div with a width in pixels instead.
Am I using this incorrectly or is this an issue I can workaround?
|