Tutorials

Configuring

VobcoCharts includes many different parameters in which you can configure functionality and appereance. For list of all parameters you should visit Settings API documentation. Settings can be passed on few different way.

  • Passing to VobcoCharts constructor new settings object

    <script>
        var settings = new VobcoCharts.Settings.Settings();
        settings.enableMouseWheel = false;
        var chart = new VobcoCharts.Chart(container, "YourTicker", settings);
    </script>
    
  • Passing to VobcoCharts constructor JSON

    <script>
        var chart = new VobcoCharts.Chart(container, "YourTicker", {"enableMouseWheel": false});
    </script>
    
  • Modifying it on live chart

    <script>
        var chart = new VobcoCharts.Chart(container, "YourTicker");
        chart.settings.enableMouseWheel = false;
    </script>
    

    Keep in mind that if you're modifying settings after create function it is good idea to call chart.draw() functions for changes to take effect immidiatelly instead of waiting for charts to redraw (mouse move on canvas, or some changes through toolbar).