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

Sets up an object that can display an indicator line running horizontally/vertically through the center of each chart element in the chart when the user clicks the chart element.

Type: wijmo.chart.chart_indicator object

Default: {visible: false, style: {stroke: "#000000"}}

Syntax
$(function () {
    
    // Get value
    var returnsValue; // Type:  wijmo.chart.chart_indicator
    returnsValue = $(".selector").wijbarchart("option", "indicator");
    
    // Set value
    var newValue; // Type:  wijmo.chart.chart_indicator
    $(".selector").wijbarchart("option", "indicator", newValue);
        
});
var indicator : chart_indicator;
Example

This code sets the visible attribute of the indicator option to true, and sets the color to purple, as in the image below.

 

<script id="scriptInit" type="text/javascript">
    $(document).ready(function () {
        $("#wijbarchart").wijbarchart({
            indicator: {visible: true, style: {stroke: "purple"}},
            seriesList: [{
                label: "2012 Sales",
                legendEntry: false,
                data: { 
                    x: ['Ford', 'GM', 'Chrysler', 'Toyota', 'Nissan', 'Honda'], 
                    y: [.05, .04, .21, .27, .1, .24] 
                }
            }],
        });
    });
</script>
See Also

Reference

options type
wijbarchart Method