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

Axis lines and series lines disappear when chart width goes beyond certain value #68

Open
mahesh139 opened this issue Sep 15, 2017 · 0 comments

Comments

@mahesh139
Copy link

mahesh139 commented Sep 15, 2017

Problem with Oxyplot on Xamarin forms Android :

i have line chart in a scroll view (With horizontal scroll). chart width is set using "WidthRequest" binding (MVVM) in xaml. i am updating width of the chart based on number of data points (e.g number of data points * 25)

following piece of code shows my chart binding:

<ScrollView Orientation="Horizontal" HorizontalOptions="FillAndExpand"> <oxy:PlotView Model="{Binding PlotModel}" WidthRequest="{Binding ChartWidth}" /> </ScrollView>

this line chart has 3 line series with line style solid and axis line style solid.

everything work well (chart is drawn correct, lines are displayed, axis lines are displayed, chart scrolls), until chart width goes beyond certain value (when data points increase over the time).

on android device (Xiomi Redmi 2 Prime), after width crosses 2475 points, series lines and axis lines disappear (data points are still shown, scroll works perfect, just series lines and axis lines disappear) .

i did test on different android devices and noticed that lines disappear at different widths on different devices (not fixed 2475 points).

following are couple of screens:
http://www.screencast.com/t/8p8AC5KWokw
http://www.screencast.com/t/XOkZ51nIQB

i would really appreciate any help, i will try and create a demo project and submit a link with this
problem.

@objorke objorke changed the title Line chart: Axis lines and series lines disappear when chart width goes beyond certain value Axis lines and series lines disappear when chart width goes beyond certain value Oct 20, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants