Skip to Content
0
Dec 11, 2018 at 08:54 AM

X-axis label disappears when zooming in on the Vizframe column chart

262 Views Last edit Dec 11, 2018 at 12:29 PM 4 rev

Hi SAPUI5 Experts

I am having trouble with my column chart and can't seem to find the solution.
As seen below the problem is when zooming in a vizframe column chart the x axis labels disappear.
How to make it so that the x axis label stay when zooming in or out.

Not zoomed in on the column chart

Zoomed in on the column chart: x axis labels 0 to 23 disappear

Here is the code properties for the vizframe
oVizFrame.setVizProperties({
                plotArea: {
                    dataLabel: {
                       /* formatString:CustomerFormat.FIORI_LABEL_SHORTFORMAT_2,*/

                        visible: false
                    },
                     referenceLine: {
                    	line: 
                    	  {
                    	  	 valueAxis:[
					{
					  value: abschlagline, 
					  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'
                },
                tooltip : {
                	formatString : FIORI_NUMBER_GER
                },
                yAxis : {
                	scale: {
                              fixedRange : true,
                              minValue : "0",
                              maxValue : abschlag
                    }
                }
            });
Regards,

Jose Angelo Mandapat

Attachments

not-zoomed-in.jpg (15.1 kB)
zoomed-in.jpg (12.8 kB)
not-zoomed-in.jpg (15.1 kB)
zoomed-in.jpg (12.8 kB)