Skip to Content
0
Sep 14, 2018 at 11:08 AM

Reference Line not visible when its value exceeds the scale on the vizframe

73 Views

Hello Experts,

I am having trouble with using reference lines. I have already applied it but i noticed that when its value exceeds the y axis value it wont be visible. Is there any way that the reference line to be still visible? or is there any way that the scale would auto adjust to the reference line?

Here is the sample pictures of my reference line
value of reference line is: 0.3333

and here is the sample when the reference line exceeds the y-axis scale
value of reference line is: 2727




Is there a way to auto adjust the scale with the reference line? or is there a way that the reference line is still visible.


Here is the code for my reference line.

oVizFrame.setVizProperties({
                plotArea: {
                    dataLabel: {
                       /* formatString:CustomerFormat.FIORI_LABEL_SHORTFORMAT_2,*/


                        visible: false
                    },


                    referenceLine: {
                    	line: 
                    	  {
                    	  	 valueAxis:[
										{
											value: abschlag, 
											visible: true, 
											size: 2, 
											type: "line", 
											label:{
												text: "Abschlag", 
												visible: true
												 }
										}
								]
							}
						}
           
                },
                valueAxis: {
					label: {
						formatString: FIORI_NUMBER_GER
					},
					title: {
						visible: true,
						text: "kWh"
					}
				},
                categoryAxis: {
                    title: {
                        visible: true,
                        text: "Tag"
                    },
                },
                title: {
                    visible: false,
                    text: 'Year'
                }
            });

Regards,
Jango