series2.StrokeDashArray = new float[] { 10, 20 }; |
Hi,
First of all thank you for the assistance. I have tested you example on real device (LG) and the result is an empty screen. As well, I have integrated your renderers in my project and the bar is exactly the same as before applying the renderer.
ChartExt chart = new ChartExt();
NumericalAxis xAxis = new NumericalAxis();
NumericalAxis yAxis = new NumericalAxis();
chart.PrimaryAxis = xAxis;
chart.SecondaryAxis = yAxis;
StackingBarSeries serie1 = new StackingBarSeries();
StackingBarExt serie2 = new StackingBarExt();
serie2.StrokeDashArray = new float[] { 10, 20 };
serie1.SetBinding(ColumnSeries.ItemsSourceProperty, "mycollect1");
serie2.SetBinding(ColumnSeries.ItemsSourceProperty, "mycollect2");
chart.Series.Add(serie1);
chart.Series.Add(serie2);
Thanks
Hello,
Your renderer is working both in Android and iOS. But I have noticed these issues:
- Android: bars are separated by a small space
-iOS: the dashed line is thicker than Android one, and it is always set to red color
Screens captures attached.
Thanks!
Hi,
Just 2 things:
Android: with tooltip enabled, when I click on bar, the label appears on the bottom of the chart. You can see it on file attached.
iOS: the line is still too thick. You can see it on file attached. Is it posible to set the thick on the renderer with a number?
Thanks again!
<local:StackingBarExt.StrokeWidth>
<OnPlatform x:TypeArguments="x:Double" iOS ="1" Android ="2"/>
</local:StackingBarExt.StrokeWidth> |
ChartTooltipBehavior tooltip = new ChartTooltipBehavior();
tooltip.BackgroundColor = Color.White;
chart.ChartBehaviors.Add(tooltip); |