I create this package for sharing all my xamarin forms custom controls
add assembly references
xmlns:ultimateChart="clr-namespace:UltimateXF.Widget.Charts;assembly=UltimateXF"
<ultimateChart:SupportBarChart
x:Name="lineChart"
VerticalOptions="FillAndExpand"
HorizontalOptions="FillAndExpand"
Description="Renderer"
IsShowLeftAxis="false"
IsShowLeftAxisLine="true"
IsShowLeftAxisValue="true"
IsShowRightAxis="false"
IsShowRightAxisLine="false"
IsShowRightAxisValue="false"
IsShowXAxis="false"
IsShowXAxisLine="true"
IsShowXAxisValue="true"
XAxisPosition="BOTTOM" />
DataBinding
var entries = new List<EntryChart>();
entries.Add(new EntryChart(0,5));
entries.Add(new EntryChart(1,7));
entries.Add(new EntryChart(2,10));
entries.Add(new EntryChart(3,3));
var dataSet = new BarDataSet(entries, "Line Chart")
{
DataColor = Color.Red,
DrawValue = false,
};
var data = new BarChartData(new List<IBarDataSet>(){dataSet},new List<string>());
lineChart.ChartData = data;
Chart types:
Screenshots are currently taken from the original repository, as they render exactly the same :-)
-
BarChart (with legend, simple design)
- BarChart (grouped DataSets)
- Horizontal-BarChart
- PieChart (with selection, ...)
- ScatterChart (with squares, triangles, circles, ... and more)
- CandleStickChart (for financial data)
- BubbleChart (area covered by bubbles indicates the value)
- RadarChart (spider web chart)
Copyright 2018 QuachHoang
Special thanks Daniel Cohen Gindi & Philipp Jahoda