# SAP BO Dashboards- Use of custom scale in Charts

I am pretty sure that most of us have encountered with the below problem while working with line charts/barcharts in   Dashboards ie, the y-value are repeating for the graph, or the value plotted is not correct.

Suppose the values to be plotted in the graph is as shown in below. The value plotted in graph will be as shown below ie, the value 2 is plotted  in between 2 and 3, instead of plotting at the line of 2 itself.

It is because the height of the graph is less. If we increase the height of the graph, the graph looks like as shown below. Here the Y-axis values are repeating.

Giving decimal values to the scale will not solve the problem, and it is not acceptable at certain scenarios (Eg: plotting age, count etc..)

In order to avoid these problems, we have to customize the scale.

Below steps explains how we can customize the scale.

1.    Right click the line chart and go to the behavior tab.

By default, ‘Auto(Y) axis’ is selected. We have to change it to ‘Manual(Y) Axis’ for customizing the scale

2.    ‘Size of Division’ and ‘Maximum Limit’ and ‘Minimum limit’ (If ‘_’ ve values needs to be plotted) are the parameters to be set.

While selecting the ‘Size of division’ and ‘Maximum limit’ and ‘Minimum limit’ we should be careful.

3.    Below steps can be used to find the ‘Size of division’ and ‘Maximum limit’

a)    Find the ‘Maximum’ and ‘Minimum ‘values of the numbers to be plotted in the graph.

Let Maximum be ‘Max’ and Minimum be ‘Min’

b)   If (Max<10 or ((Max-Min)/2)<10), then S=Max/2

Else S= (Max-Min)/2,   Where S is ‘Size of Division’

Round down the value to the nearest integer.

c)    Find the remainder after the ‘Maximum’ value divided by ‘size of division’

We can use the ‘mod’ function available in excel for this.

Remainder (R )=mod(‘Max’,’S’)

d)    The Maximum Limit ‘MaxLim’ can be found by using the formula

MaxLim=Max-R+S

e)    If ‘-‘ve values needs to be plotted, we have to find the Minimum Limit value .(We can use the steps ‘c’ and ‘d’ with some changes to find the ‘Minimum limit’)

If ‘-‘ ve value are not there, we can set the ‘Minimum Limit’ to 0.

4.    As the last step we have to map the ‘Maximum Limit ‘ to ‘MaxLim’ and ‘Size of Division ‘ to ‘S’

Now the values in the graph are plotted correctly.By using the ‘Mouse –Over values’ property we can see the exact value of each point as shown below

The above implementation worked fine, for all scenarios in our recent project.

Hope this will be useful…

### Assigned Tags

You must be Logged on to comment or reply to a post. Valuable piece of information.. thanks Anu tresa.. This is a great piece of information. We usually stick to auto-scale most of the times and for any of the scenarios mentioned in the article, we would say it's the scale that best fits the data values plotted on the chart and xcelsius best decides these scale - tool limitation.

Great job Anu for thinking out of the box and coming up with this super-useful workaround. Hi Anu,

Superb idea . I often face this issue and now it gets resolved. Thank you Anu Keep posting !!!

Regards,

Gokulkumar RD
{"ft_lang_label":"__label__en","ft_lang_prob":0.8477327,"math_prob":0.95730066,"size":3013,"snap":"2022-27-2022-33","text_gpt3_token_len":761,"char_repetition_ratio":0.13958126,"word_repetition_ratio":0.014705882,"special_character_ratio":0.2449386,"punctuation_ratio":0.090322584,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98605627,"pos_list":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20],"im_url_duplicate_count":[null,null,null,5,null,5,null,5,null,null,null,null,null,null,null,null,null,null,null,null,null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-06-29T16:13:24Z\",\"WARC-Record-ID\":\"<urn:uuid:28831bb8-ce37-48ed-916d-d390f82da5b0>\",\"Content-Length\":\"76417\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:fb925feb-6721-45ed-8a57-aa11e0b58cb9>\",\"WARC-Concurrent-To\":\"<urn:uuid:ad3a5043-999b-4d5d-8c4d-15901e463aed>\",\"WARC-IP-Address\":\"104.113.14.191\",\"WARC-Target-URI\":\"https://blogs.sap.com/2014/07/08/sap-bo-dashboards-use-of-custom-scale-in-charts/\",\"WARC-Payload-Digest\":\"sha1:FTC3Z5KAHEM3TCIVNEFG35RA435TTNQD\",\"WARC-Block-Digest\":\"sha1:M5PEUOYCOA6OJB63GGBEE3UJP574BTXH\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-27/CC-MAIN-2022-27_segments_1656103640328.37_warc_CC-MAIN-20220629150145-20220629180145-00704.warc.gz\"}"}