Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
710
Bar Chart with identical values not displaying anything
posted

I have a numeric series with the same value for the Y-axis. When I show the chart as a line it works, but when I show the chart as a bar chart, it has no Y-axis values and no bars. 

Parents
  • 710
    Verified Answer
    posted

    I can avoid the problem by explicitly setting the Y-axis range. 

                        .Axis.Y.RangeType = AxisRangeType.Custom

                        .Axis.Y.RangeMax = Math.Ceiling(maxValue * 1.2)

                        .Axis.Y.RangeMin = Math.Floor(minValue * 0.8)

     

    Is this behavior a defect, or intentional? 

     

    What is the formula used by the default AxisRangeType?  

Reply Children
No Data