High-performance charting library for .NET 10 Android applications using OxyPlot.
- Chart Types: Line, Bar, Scatter, Pie, Real-time, Multi-series
- Touch Gestures: Pan, zoom, pinch with native Android support
- High Performance: Hardware-accelerated rendering
- Customizable: Themes, colors, fonts, and styling options
usingOxyPlot.DotNetAndroid;usingOxyPlot;usingOxyPlot.Series;usingOxyPlot.Axes;// Create PlotViewvarplotView=newPlotView(context);// Create chart modelvarmodel=newPlotModel{Title="Sample Chart"};model.Axes.Add(newLinearAxis{Position=AxisPosition.Bottom});model.Axes.Add(newLinearAxis{Position=AxisPosition.Left});// Add data seriesvarseries=newLineSeries{Title="Data",Color=OxyColors.Blue};for(inti=0;i<100;i++){series.Points.Add(newDataPoint(i*0.1,Math.Sin(i*0.1)));}model.Series.Add(series);// Assign and renderplotView.Model=model;plotView.Invalidate();varmodel=newPlotModel{Title="Line Chart"};varseries=newLineSeries{Color=OxyColors.Blue};// Add data points...model.Series.Add(series);plotView.Model=model;varmodel=newPlotModel{Title="Bar Chart"};varbarSeries=newBarSeries();barSeries.Items.Add(newBarItem{Value=25});// Add more items...model.Series.Add(barSeries);varmodel=newPlotModel{Title="Scatter Plot"};varscatterSeries=newScatterSeries{MarkerType=MarkerType.Circle};// Add scatter points...model.Series.Add(scatterSeries);- Pan: Drag to move around the chart
- Zoom: Pinch to zoom in/out
- Reset: Double-tap to reset view
- Tracker: Tap data points for details
- .NET 10 Android target framework
- Android API Level 21 (Android 5.0) or higher
- OxyPlot.Core and OxyPlot.SkiaSharp dependencies
Clone and run the included sample:
git clone https://github.com/AndreCL/Oxyplot.DotNetAndroid.git
cd Oxyplot.DotNetAndroid
dotnet run --project Sample.OxyPlot.AndroidMIT License - see LICENSE for details.
Built on OxyPlot with SkiaSharp rendering.