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

How to get the real width of the line chart? #717

Open
Demven opened this issue Dec 30, 2023 · 0 comments
Open

How to get the real width of the line chart? #717

Demven opened this issue Dec 30, 2023 · 0 comments

Comments

@Demven
Copy link

Demven commented Dec 30, 2023

Hello, and thank you for this amazing library.

I'm developing my custom X-axis labels, and I need to know the width of the chart to display it correctly. For some reason, there's blank space around the chart, and I couldn't find any solution to get rid of it and let the chart fill all the space inside the provided container:

image

On different screens, the chart takes different % of the available container width, so I can't calculate reliably the necessary width for the labels:
image

Two questions:

  1. How to get the real width of the chart (excluding the empty space around)?
  2. How to get rid of the space and let the chart fill the container entirely?

Many many thanks! I will watch this thread until the answer is provided by the developers and community. At the moment I have to use crazy calculations...

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

1 participant