Skip to content
mlzummo edited this page Dec 14, 2015 · 4 revisions

Persist takes 3 params the the last 2 being optional:
widget (object), properties (array), includeData (boolean)

the simplest example:

require(["src/other/Persist","src/chart/Column"], function(Persist, Column) {
    var columnChart = new Column()
        .target("#div-id")
        .columns([])
        .data([])
        .render();

    var serializationString = Persist.serialize(columnChart); // save to DB
});