lightweight-charts

is it possible to draw a line with a "gap" using lightweight-charts?


struggling with this one a little bit, want to draw a line with a "gaps" something like that: enter image description here

but whatever i did so far chart either skips "missing days" and joins "last before gap" and "first after gap" either interprets values as 0 (NaN, null tested). Is it even possible to have a "gap" there?

examples:

  1. nulls or nans work like this: nulls or nans

  2. no days at all: no days at all


Solution

  • It's impossible right now. As workaround you can create several separate series for each piece of the line.

    But I think it's better to create an issue on the issue tracker.