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.
Hello Martin,
Would you check if you set the correct ValueMembePath which points to the field you want to show on the chart? In the following help documentation, "Coal" field is used as the ValueMemberPath.
Line Serieshttp://help.infragistics.com/doc/android/2016.1/?page=DataChart_Category_Line_Series.html
For the requirement of LineSeries, you can refer to the following page.
Series Requirementshttp://help.infragistics.com/doc/android/2016.1/?page=DataChart_Series_Requirements.html
Best regards,YukiDeveloper Support EngineerInfragistics Inc.
Thank you. This helped me.
Thank you for your reply. I am glad that my reply was helpful for you. Please let me know if I can assist you with anything else.
To get started download and install Norton setup from a particular platform such as norton.com setup. Norton setup always keeps our data be safe and secure. It protects our data from various types of online threats such as viruses, malware issues and many more. Norton Product Key is used to activate our Norton antivirus account. Without this key, we cannot use any features provided by Norton antivirus.
The <a href="">mywifiextnets.net/.../">arris default password</a> provides the best services and it also provides the speed.