Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
55
DataChartView not appearing
posted

Hello, I am trying to add a DataChartView into my Xamarin.Android project. I've already added "Infragistics.AndroidBindings" to my references.

The following is my cs code.

[code]

LinearLayout view = FindViewById(Resource.Id.chart_panel);

DataChartView chart = new DataChartView(this);

NumericYAxis yAxis = new NumericYAxis();
yAxis.Label = "y";
yAxis.LabelTextSize = 10.0f;

CategoryXAxis xAxis = new CategoryXAxis();
xAxis.Label = "x";
xAxis.LabelTextSize = 10.0f;

chart.AddAxis(xAxis);
chart.AddAxis(yAxis);

LineSeries series = new LineSeries();
series.ValueMemberPath = "";
series.Title = "Test Data Chart";
series.XAxis = xAxis;
series.YAxis = yAxis;
series.Thickness = 4;
series.MarkerType = MarkerType.None;

chart.AddSeries(series);

view.AddView(chart);

[/code]

If I try adding another control such as a LinearGaugeView, I am able to see the control but when adding a DataChartView, nothing displays.

  • 0
    Offline posted

    Data Analytics is the best part to get complete validation of data that is now enhanced with the Data Science. Learning Data Science course along with Python programming should lead us to make us top on the IT Job market.