Quantcast
Channel: SCN : All Content - SAPUI5 Developer Center
Viewing all articles
Browse latest Browse all 6178

SAPUI5 column chart - Issue after setting starting point

$
0
0

Hello,

While setting the start point of my column chart at 96.0 for y-axis, the chart is encroaching below x-axis. My values values are all between 97-100, hence need to set the y-axis at a higher point. I am not getting a way out to resolve this as it is giving very awkward look.

Please suggest.

column chart.png

Please find my code below:

 

var oColumnChart = new sap.viz.ui5.Column("columnChartID",{

                width : "100%",

                height : "200px",

                plotArea: {

              colorPalette :  ['#339966','#66CC99'],

                drawingEffect : sap.viz.ui5.types.VerticalBar_drawingEffect.normal,

                isRoundCorner : true

                },

                title : {

                visible : false,

                text : ''

                },

                legend : {

                        visible : false 

                },

                xAxis : {

                          isIndependentMode : false,

                         

                        gridline : {

                                  //visible: true,

                                  showFirstLine: true,

                                  showLastLine: true,

                                  type: sap.viz.ui5.types.Axis_gridline_type.dotted

                        },

   scale: {

                                 fixedRange : true,

                                  minValue : 80.0,

                                  maxValue : 100.0

                        }

                },

                yAxis : {

                          isIndependentMode : false,

                        gridline : {

                                  //visible: true,

                                  showFirstLine: true,

                                  showLastLine: true,

                                  type: sap.viz.ui5.types.Axis_gridline_type.dotted

                        }  ,

                        scale: {

                                  fixedRange : true,

                                  minValue : 96.0,

                                  maxValue : 100.0

                        }

                },

                dataset : oDataset

                });


Viewing all articles
Browse latest Browse all 6178

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>