Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Text on Segments #140

Open
IRISHMAN04 opened this issue Mar 17, 2023 · 6 comments
Open

Text on Segments #140

IRISHMAN04 opened this issue Mar 17, 2023 · 6 comments

Comments

@IRISHMAN04
Copy link

Is it possibe to add text overtop of a segment? Either via adding the segments "val", or by a custom formula. Boomers at my company want to screenshot the chart to display it on a powerpoint instead of using the hover functionality on the live site

@dam13n
Copy link

dam13n commented Feb 2, 2025

I'm implementing this library now (vasturiano's libraries in general are so awesome), and having text/labels on the segments would be very helpful. Hover is a nice option, but being able to visually see all the timeline data without having to mouse over everything would be so nice for my use case.

@tasketechnology
Copy link

tasketechnology commented Feb 2, 2025

Hi there. the "features" branch in our fork of this project has added labels to the segments. The docs are up-to-date for the label and other tweaks.

https://github.com/tasketechnology/timelines-chart/tree/features

@dam13n
Copy link

dam13n commented Feb 3, 2025

@tasketechnology very cool! it's semi-working. On load, it just shows one big rect. If you zoom in (via the chart or the overview), it'll re-render properly. But there's also some odd behavior sometimes when you adjust the time span on the overview bar, sometimes rendering just a single square again or a large one in the background. Some screenshots below.

Image Image

@tasketechnology
Copy link

You should post the issues under https://github.com/tasketechnology/timelines-chart/tree/features not here. Hoever, I cannot guarantee any changes either as the code works fine for our purproses. Consider using the zoomX to set the initial zoom. If you submit to our fork of the project then please include a small sample of the data you use, fake names and nubmers are fine.

@dam13n
Copy link

dam13n commented Feb 4, 2025

I went to post an issue on your repo, but I don't think Issues are enabled? So I commented back over here.

I'm using the getRandomData() function provided by vasturiano in this repo, just with an added label: 'test'.

Will take a look at zoomX and appreciate your help.

@tasketechnology
Copy link

Issues have been enabled. Thanks for letting us know.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants