jQWidgets Forums

jQuery UI Widgets Forums Chart StackedColumn – forcing maxValue

This topic contains 1 reply, has 1 voice, and was last updated by  GrantLetourneau 11 years, 5 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
  • StackedColumn – forcing maxValue #50536

    GrantLetourneau
    Participant

    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' }
    						]
    				}
    			]
    StackedColumn – forcing maxValue #50537

    GrantLetourneau
    Participant

    Nevermind, I’m a fool. Switched type from “stackedcolumn” to “stackedcolumn100”

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.