Making Stock Chart’s period selector input fields read-only

If you don't want your users to be able to enter dates into period selector's input fields, you can use simple method from this demo. It uses rendered event handler to grab all date selector inputs and adds readOnly property to them, making them non-editable.

var chart = AmCharts.makeChart( "chartdiv", {

  // ...
  
  "listeners": [{
    "event": "rendered",
    "method": function( e ) {
      var fields = e.chart.div.getElementsByClassName( "amChartsInputField" );
      for(var i = 0; i < fields.length; i++) {
        fields[i].readOnly  = true;
      }
    }
  }]
  
} );