Skip to Content
Author's profile photo Former Member

User control of the maximum limit in a bar chart

There are times when the bar chart series values vary drastically and the smaller series values are not clear to the user. To facilitate user control over the
maximum limit, we can use an Input Text box near the chart. The chart will take the maximum limit from the user input provided during run time, else it will
take the maximum value from the calculated maximum value in the series.

Please see the steps that can be followed to achieve this.

  • Place an Input text box on the top right corner of a bar chart and provide the properties as below.

/wp-content/uploads/2014/03/1_403056.png

  • The destination would be linked to the cell J21 in the worksheet Dashboard_BL.

/wp-content/uploads/2014/03/2_403057.png

  • The maximum and minimum limits of the bar chart would be linked to the spreadsheet.

/wp-content/uploads/2014/03/3_403082.png

  • The mapping formulae would be as below.  Minimum value =0 (As this is a bar chart)

/wp-content/uploads/2014/03/4_1_403083.png

  • Maximum value rounded to a number higher than the maximum value

/wp-content/uploads/2014/03/4_2_403084.png

MAX(G18:G62) gives the maximum in the series and K18 is the length of the maximum value.

Logic:- If the user input is provided, then the maximum limit is the user input otherwise it is the maximum obtained as per the formula.

  • The formula for the length

/wp-content/uploads/2014/03/5_403091.png

  • The characters that should be allowed in the input box is as shown.

/wp-content/uploads/2014/03/6_403092.png

This way you get a bar chart with a User input box to the right that gives you the liberty to select the maximum value.

Assigned Tags

      Be the first to leave a comment
      You must be Logged on to comment or reply to a post.