timelines-chart icon indicating copy to clipboard operation
timelines-chart copied to clipboard

Scaling Issues...

Open larrywal opened this issue 4 years ago • 2 comments

I read in a CSV file I created with timings and then wrote code to transform it into a JSON object to pass in as data to the timeline-chart. It worked well; except.....I'm having a major scaling issue.

If I .slice(2) the data (to remove groups LT0 and LT1), then things show pretty well. There isn't that much data in the other groups. But in LT0 and LT1 I have a ton of data, and it's causing major scaling issues.

I tried things like width and maxHeight and it helps a bit. But not much. Am open to ideas - is there a way to get this working better with the control? The vast majority of data in LT0 and LT1 shouldn't be taking up more vertical real estate....there are the same number of series in those groups as in others. So I would think width would be the only constraining factor unless there's a bug in the control.

The JSON is attached as a txt file. Below is a screenshot of the data when using .slice(2) and without.

myObject.txt

WITH .slice(2) image

WITHOUT .slice(2) image

larrywal avatar Jan 25 '20 21:01 larrywal

@larrywal thanks for reaching out.

It's hard to say just from the images and without knowing exactly what dataset is being input to the library. Could you please make a reproducing example on https://codepen.io/ that illustrates the issue?

vasturiano avatar Jan 29 '20 08:01 vasturiano

Hi, I have the same issue. If I have a large dataset then not all labels on the right side are shown. However, if I hover over a data point in the timeline that belongs to this label the label comes up until I move my mouse again.

I created a minimal html file from the data set of @larrywal which illustrates the problem (uploaded as .zip file since github does not support uploading html files). Unfortunately, I could not get it to work on https://codepen.io but I can open the provided html file locally in my browser and it shows the problem. Hope this helps you to find the issue and thanks for the good work. download index.html.zip

sqall01 avatar Mar 06 '20 09:03 sqall01