Left margin AreaLineChart
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Left margin AreaLineChart
We use the AreaLineChart in our Xamarin Forms application.
But no matter what we set the WidthRequest to, there is always more left margin white space than on the right side.
We set the control to Center.
Cfr screenshot.
How can we get equal margins?
But no matter what we set the WidthRequest to, there is always more left margin white space than on the right side.
We set the control to Center.
Cfr screenshot.
How can we get equal margins?
- Attachments
-
- AreaLineChart.png (294.4 KiB) Viewed 22011 times
Re: Left margin AreaLineChart
Hello,
could you please share the code that you're using to change the chart aspect and data points to populate ?
I can't reproduce the problem here by using this area example.
could you please share the code that you're using to change the chart aspect and data points to populate ?
I can't reproduce the problem here by using this area example.
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
I will try to recreate a sample.
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
Seems our screen design is doing something, because the demo app I created to share does indeed not have this problem.
In other words, I need to digg deeper in our production app.
Sorry for the inconvenience and time, thanks for the tip.
In other words, I need to digg deeper in our production app.
Sorry for the inconvenience and time, thanks for the tip.
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
Ha, found the difference!
When toggling the chart with IsVisible, it will be smaller!
When toggling the chart with IsVisible, it will be smaller!
Last edited by Bank Van Breda on Fri May 21, 2021 1:58 pm, edited 1 time in total.
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
So the problem is with graphs being rendered invisible and shown later...
Here I load the same graph twice on the page, the first one is just like your sample the second one has a bool bound to IsVisible and will become visible with the button click.
This will render it smaller! Cfr screenshots.
Do you still need extra info on code? I can supply the example if needed.
Here I load the same graph twice on the page, the first one is just like your sample the second one has a bool bound to IsVisible and will become visible with the button click.
This will render it smaller! Cfr screenshots.
Do you still need extra info on code? I can supply the example if needed.
- Attachments
-
- Screenshot 2021-05-21 at 15.54.31.png (92.05 KiB) Viewed 21969 times
-
- Screenshot 2021-05-21 at 15.54.28.png (76.73 KiB) Viewed 21969 times
Re: Left margin AreaLineChart
Hello,
ok, it's very strange problem. Let me check here and back to you. If I need code you use will ask.
Thanks.
ok, it's very strange problem. Let me check here and back to you. If I need code you use will ask.
Thanks.
Pep Jorge
http://support.steema.com
http://support.steema.com
Re: Left margin AreaLineChart
Hello,
I've just checked here setting the Chart view visible and invisible by using a simple IsVisible code :
but all seems to work fine anyway.
Could you please send me the code that you're using in order to make it invisible at first ?
Thanks
I've just checked here setting the Chart view visible and invisible by using a simple IsVisible code :
Code: Select all
private void B_Clicked(object sender, EventArgs e)
{
AreaLineChart.IsVisible = !AreaLineChart.IsVisible;
}
Could you please send me the code that you're using in order to make it invisible at first ?
Thanks
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
I added the sample here : https://github.com/Depechie/Charting
It does not contain our license file of course
It does not contain our license file of course
Re: Left margin AreaLineChart
Hello,
yes, you're correct, I'm able to reproduce the problem here.
For the moment still not found what's the cause of this. We will review more carefully in order to find a solution.
In meantime, would be an option to you to set invisible via code instead of doing it via binding ?
Thanks
yes, you're correct, I'm able to reproduce the problem here.
For the moment still not found what's the cause of this. We will review more carefully in order to find a solution.
In meantime, would be an option to you to set invisible via code instead of doing it via binding ?
Thanks
Pep Jorge
http://support.steema.com
http://support.steema.com
-
- Newbie
- Posts: 7
- Joined: Thu Apr 15, 2021 12:00 am
Re: Left margin AreaLineChart
Not in our actual production app. Everything is abstracted away from the View and handled in the ViewModel...