title: Kendo chart remove attribute using javascript
body: <p>I have a kendo column chart, the datasource gets refreshed when different criterias are set via date pickers.</p>
  
  <p>I want to stop the chart from displaying the value axis as a decimal and the only way I have found so far is to either set the format, which results in duplicating numbers, or the major unit, which if my data changes, then this results in overlapping value axis labels. Neither are suitable.</p>
  
  <p>The only way I can now think to do it is to dynamically set the major unit based on whether my maximum value is less than 10, if it is then the major unit is set to 1, if not no major unit isn't set.</p>
  
  <p>This should work fine but, if the major unit gets set to 1, and the data changes I now need to find a way to clear the major unit if my new maximum value is greater than 10.</p>
  
  <p>In javascript I have:</p>
  
  <pre><code>if (highest &lt;= 10) {
     chart.data("kendoChart").options.valueAxis.majorUnit = 1;
  } else {
     chart.data("kendoChart").options.valueAxis.majorUnit.remove(); // This does not work
  }
  </code></pre>
  
  <p>I can't just set majorUnit to null or 0, it doesn't like that and there is no documentation on the correct syntax for removing this kind of attribute.</p>