addOHLC method
void
addOHLC(})
Implementation
void addOHLC(dynamic series, dynamic time, double open, double high,
double lower, double close,
{int? timeTolerance, preserveTimeOfOverwrittenValue}) {
var dateTime = parseDateTime(time)!;
preserveTimeOfOverwrittenValue ??= false;
var args = [
chartObject,
series,
JsObject.jsify({
't': dateTime.millisecondsSinceEpoch,
'o': open,
'h': high,
'l': lower,
'c': close
}),
timeTolerance,
preserveTimeOfOverwrittenValue
];
ChartEngineChartJS._jsWrapper!.callMethod('addData_tohlc', args);
}