label-studio icon indicating copy to clipboard operation
label-studio copied to clipboard

Title classes are recreated on top of the old ones

Open InCaseOf opened this issue 4 years ago • 1 comments

Describe the bug For a time series plot moving the sliding window, changing the scale of the plot creates new title objects drawn on top of each other, without removing the old ones. Leading to a build up of 100s of title objects if working on the same data set for a while

In the yaxis class

To Reproduce Steps to reproduce the behavior:

  1. Create a time series plot with a range of data that lets the scale adjust
  2. use google console to inspect the yaxis class
  3. drag the grey window box, see the tick classes being redrawn and the title class being recreated on top of the older ones

Expected behavior The title class should either remain static or if needed to change be destroyed then recreated

Screenshots image

Environment (please complete the following information):

  • OS: Windows, chrome
  • Label Studio Version: Docker version 1.0.2

InCaseOf avatar Jun 18 '21 15:06 InCaseOf

@hlomzik Check it please!

makseq avatar Jul 23 '21 01:07 makseq