DHTMLX Docs & Samples Explorer

remove (id)

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

Required library file: dhtmlxchart .js

Removes an item by its ID 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());