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

Sets the amount of space in pixels between the chart area and the top edge of the <div> that defines the widget.

Type: Number

Default value: 25

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijbarchart("option", "marginTop");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijbarchart("option", "marginTop", newValue);
        
});
var marginTop : number;
Example
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#wijbarchart").wijbarchart({
            marginTop: 75,
            seriesList: [{
                label: "US",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [12.35, 21.50, 30.56] }
            }, 
            {
                label: "Japan",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [4.58, 1.23, 9.67] }
            }, 
            {
                label: "Other",
                data: { x: ['PS3', 'XBOX360', 'Wii'], y: [31.59, 37.14, 65.32] }
            }],
        });
    });
</script>
See Also

Reference

options type
marginBottom Option
marginLeft Option
marginRight Option
wijbarchart Method