Wijmo UI for the Web
axis Option
wijmo.chart.wijbarchart Namespace > options type : axis Option

An object that contains all of the information to create the X and Y axes of the chart.

Type: wijmo.chart.chart_axes object

Default value:

x:{
    alignment: "center",
    style: {stroke: "#999999", "stroke-width": 0.5}, 
    visible: true, 
    textVisible: true,
    text: "",
    textStyle: {fill: "#888", "font-size": 15, "font-weight": "bold"}, 
    labels: {
        style: {fill: "#333", "font-size": 11},
        textAlign: "near", 
        width: null
    },
    compass: "south",
    autoMin: true,
    autoMax: true,
    min: null,
    max: null,
    origin: null,
    autoMajor: true,
    autoMinor: true,
    unitMajor: null,
    unitMinor: null,
    gridMajor: {
        visible: false, 
        style: {stroke: "#CACACA", "stroke-dasharray": "- "}
    },
    gridMinor: {
        visible: false, 
        style: {stroke: "#CACACA", "stroke-dasharray": "- "}
    },
    tickMajor: {
        position: "none", 
        style: {fill: "black"}, 
        factor: 1
    },
    tickMinor: {
        position: "none",
        style: {fill: "black"},
        factor:1
    },
    annoMethod: "values", 
    valueLabels:[]
},
y:{
    alignment: "center",
    style: {stroke: "#999999", "stroke-width": 0.5}, 
    visible: false, 
    textVisible: true, 
    textStyle: {fill: "#888", "font-size": 15, "font-weight": "bold"}, 
    labels: {
        style: {fill: "#333", "font-size": 11},
        textAlign: "center", 
        width: null
    },
    compass: "west",
    autoMin: true,
    autoMax: true,
    autoMajor: true,
    autoMinor: true,
    gridMajor: {
        visible: true, 
        style: {
            stroke: "#999999", 
            "stroke-width": "0.5", "
            stroke-dasharray": "none"
        }
    },
    gridMinor: {
        visible: false, 
        style: {stroke: "#CACACA", "stroke-dasharray": "- "}
    },
    tickMajor: {
        position: "none",
        style: {fill: "black"},
        factor: 1
    },
    tickMinor: {
        position: "none",
        style: {fill: "black"},
        factor:1
    },
    annoMethod: "values",
    valueLabels:[]
}
	
Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  wijmo.chart.chart_axes
    returnsValue = $(".selector").wijbarchart("option", "axis");
    
    // Set value
    var newValue; // Type:  wijmo.chart.chart_axes
    $(".selector").wijbarchart("option", "axis", newValue);
        
});
var axis : chart_axes;
See Also

Reference

options type
wijbarchart Method