fix: Bugs with legend in timegraph widget