DHTMLX Docs & Samples Explorer

remove (id)

Required library edition: This method works with any edition of DHTMLX library

Required library file: dhtmlxchart .js

adds the new data object and redraws a chart

  • id - item id
    /*item with id = 12*/
    chart.remove(12);
    /*the 6th item in a chart*/
    chart.remove(chart.idByIndex(5));
    /*the 1st item*/
    chart.remove(chart.first());