Hello,
When I add Costumer Axis Y Pecentage, but if data null, the max value change into 200%,but I want always 100%
Dim customAxis As Axis = chartShow.Axes.AddCustomAxis(AxisOrientation.Vertical, AxisPredefinedPosition.FrontRight)
‘ Store the axis id
customAxisId = customAxis.AxisId
customAxis.PositionOffset = 0
customAxis.ValueFormatting.Format = ValueFormat.Percentage
Dim cultureInfo As System.Globalization.CultureInfo = CType(customAxis.ValueFormatting.CultureInfo.Clone, Globalization.CultureInfo)
cultureInfo.NumberFormat.PercentDecimalDigits = 0
‘cultureinfo.NumberFormat.
customAxis.ValueFormatting.CultureInfo = cultureInfo
customAxis.Ruler.PositionStartPercent = 0
customAxis.Ruler.PositionEndPercent = 100
Imported from legacy forums. Posted by Hot (had 2426 views)