In this article
Example - Defining the size of a Chart using a Numeric Response parameter
if(!state.Parameters.IsNull("p_width"))
{
//Gets the width if entered in the p_width parameter, and sets the chart to that width
var width : Decimal = state.Parameters.GetDecimal('p_width');
chart.Width = width;
}
if(!state.Parameters.IsNull("p_height"))
{
//Gets the width if entered in the p_height parameter, and sets the chart to that height
var height : Decimal = state.Parameters.GetDecimal('p_height');
chart.Height = height;
}Figure 1 - Setting Chart size via a Numeric Response parameter