I’m using Lightningchart (v5+) to display a real-time XY chart of an EEG signal. Everything works exactly like I expected, but I can’t find a way to hide the date displayed beneath the chart.
const dateOrigin = new Date();
chart.getDefaultAxisX().setTickStrategy(AxisTickStrategies.DateTime, (tickStrategy) => {
return tickStrategy
.setDateOrigin(dateOrigin)
.setFormattingSecond(
undefined,
{ hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: false },
(x) => 'minor'
)
} )
The data displayed looks something like:
x: 1714734098, // Epoch Timestamp,
y: 0.5 //voltage
I tried using AxisTickStrategies.Time, but that strategy does not provide the extensive formatting options AxisTickStrategies.DateTime gives me and the X value displays an unformatted Unix timestamp, which I don’t want.
I have to set some sort of origin to be able to draw properly.
Is there some kind of method / flag or styling option available to hide the date beneath the chart? I can’t find anything in the docs.
TijeO is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.