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

LineChart width #142

Closed
Mboussa opened this issue Dec 21, 2019 · 7 comments
Closed

LineChart width #142

Mboussa opened this issue Dec 21, 2019 · 7 comments
Labels
question Further information is requested

Comments

@Mboussa
Copy link

Mboussa commented Dec 21, 2019

hi, i am currently trying to put multiple line chart on he same grid chart, and mi question is:
It is possible to make the chart in landscape mode and to take all the space that is free? thx for your repsonses

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 22, 2019

Hi, I didn't get you,
explain clearly.
Thanks!

@Mboussa
Copy link
Author

Mboussa commented Dec 23, 2019

Sorry what im trying to say is how can mi Linechart widget take all thé landscape Space ? Thx

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 23, 2019

Put it in a Container() widget.

@imaNNeo
Copy link
Owner

imaNNeo commented Dec 23, 2019

And let me know if it's worked.

@Mboussa
Copy link
Author

Mboussa commented Dec 23, 2019

It didn't work still the same a s before :/
Capture d’écran 2019-12-23 à 15 48 38

@Mboussa
Copy link
Author

Mboussa commented Dec 23, 2019

Maybe if I try to give a width in the container widget ?

@Mboussa
Copy link
Author

Mboussa commented Dec 23, 2019

Done. I used this to take all the space available:
Container(
width: MediaQuery.of(context).size.width / 1.25,
child: LineChart(...)
)

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

No branches or pull requests

2 participants