Wijmo UI for the Web
marginLeft Option
wijmo.chart.wijchartcore Namespace > options type : marginLeft Option

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

Type: Number

Default value: 25

 

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  number
    returnsValue = $(".selector").wijchartcore("option", "marginLeft");
    
    // Set value
    var newValue; // Type:  number
    $(".selector").wijchartcore("option", "marginLeft", newValue);
        
});
var marginLeft : number;
Example
<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#wijbarchart").wijbarchart({
            marginLeft: 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
marginRight Option
marginTop Option
wijchartcore jQuery Widget