Wrap an existing RpeJson object as a ChartBuilder for fluent editing.
RpeJson
ChartBuilder
This is the entry point when you load a chart from a file:
const raw = JSON.parse(readFileSync('chart.json', 'utf8'));const chart = wrap(raw);chart.addLine({ name: 'FX' }).moveX(0, 4, -675, 675); Copy
const raw = JSON.parse(readFileSync('chart.json', 'utf8'));const chart = wrap(raw);chart.addLine({ name: 'FX' }).moveX(0, 4, -675, 675);
Wrap an existing
RpeJsonobject as aChartBuilderfor fluent editing.This is the entry point when you load a chart from a file: