DHTMLX Docs & Samples Explorer

add (obj)

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

  • obj - a data object
    chart.add({
        id: 1,
        value: 5.64,
        label: 2009
    });