I have a stacked chart I’m using to display percentages. Because of rounding occurring on the SQL side, the total can come up to 100.001 instead of exactly 100. Unfortunately this is making the chart axis display 0 to 110 instead of 0 to 100. Is there any way to FORCE a maximum of 100 for the axis?
var otdsettings = {
title: "On Time Delivery",
description: "",
enableAnimations: false,
backgroundColor:'#EEEEEE',
padding: { left: 5, top: 5, right: 5, bottom: 5 },
titlePadding: { left: 90, top: 0, right: 0, bottom: 10 },
source: dataAdapter,
showToolTips: true,
categoryAxis:
{
dataField: 'Month',
showGridLines: true
},
colorScheme: 'scheme01',
seriesGroups:
[
{
type: 'stackedcolumn',
columnsGapPercent: 100,
seriesGapPercent: 5,
click: otdHandler,
valueAxis:
{
minValue: 0,
maxValue: 100,
unitInterval: 10,
description: 'Percentage'
},
series: [
{ dataField: 'OTD_Yes_P', displayText: 'Pass' }
,{ dataField: 'OTD_No_P', displayText: 'Fail' }
,{ dataField: 'OTD_Pending_P', displayText: 'Pending' }
]
}
]