- Home
- Forum
- Xamarin.iOS
- DataMarker's label background color
DataMarker's label background color
Hi all,
I encountered an problem which didn't exist in earlier versions.
Settings the datamarker's background to clear has no effect any more, whereas settings to all other colors works as expected.
This line has no effect:
series.DataMarker.LabelStyle.BackgroundColor = UIColor.Clear;
Regards
Michael
SIGN IN To post a reply.
8 Replies
DD
Devakumar Dhanapoosanam
Syncfusion Team
March 4, 2019 10:54 AM UTC
Greetings from Syncfusion.
We have analyzed your query and we can reproduce the reported issue at our end.
As of now we can resolve this issue by setting the UseSeriesPalette property value as false.
Please refer the below code snippet:
CodeSnippet[C#]:
|
series.DataMarker.UseSeriesPalette = false;
series.DataMarker.LabelStyle.BackgroundColor = UIColor.Clear; |
Please refer the below UG link for more details:
Currently we are checking this issue and will update you the status in one business day March 5th, 2019.
Thanks,
Devakumar
BK
Bharathiraja K
Syncfusion Team
March 7, 2019 06:14 AM UTC
Hi Michael,
We have validated the reported issue in iOS and it was fixed already in our current source and it will be included in our upcoming 2019 Volume 1 release which is scheduled to be rolled out at the end of March 2019.
Please let us know if you need any further assistance.
Regards,
Bharathi
MI
Michael
March 7, 2019 04:29 PM UTC
Hi,
thanks for the fast fix.
Michael
BK
Bharathiraja K
Syncfusion Team
March 8, 2019 04:16 AM UTC
Hi
Michael,
Thanks
for your feedback. As always, we are happy to assist you.
Regards,
Bharathi.
LU
Luca
July 18, 2019 09:54 PM UTC
hi, 
about datamarker there is something strange on iphone X XR.
some marker are cutted outside the view... can you check why?
thanks
SM
Saravanan Madheswaran
Syncfusion Team
July 19, 2019 09:46 AM UTC
Hi Luca,
From the shared screenshot, we suspect that you are setting DataMarker LabelPosition as outer in sample level. So that only labels are cropped due to lesser space in the corners. You can resolve this issue by setting LabelPosition as Auto. Refer the below UG link for more information.
Please get back to us for further assistance.
Regards,
Saravanan.
LU
Luca
July 19, 2019 11:04 AM UTC
hi, i will try but on iphone 7 with the same code is working fine, why?
just on iphone X and XR i have this issue.
i need to have the marker outer because the marker color is the same of the area.. so if i put belowe the marked will be not visible
if i put outer what I expect is that the chart scale in order to see the marker.. am i wrong?
thanks
RA
Rachel A
Syncfusion Team
July 24, 2019 07:12 AM UTC
Hi Alberto,
We have checked the reported scenario in iPhone 7 and iPhone XR, but we get the same output in both. As we said before, labels are cropped due to lesser space in the corners if we set DataMarker LabelPosition as outer in sample level which is the behavior. To avoid the cropping issue at corners when the data marker labels are placed outside we can use the RangePadding as an Additional or PlotOffset property to apply some padding to the axis line. We have prepared the sample to achieve it, you can download from the below location.
Please find the code snippet below for the same.
[XAML]
|
<chart:SfChart.PrimaryAxis>
<chart:NumericalAxis RangePadding="Additional" PlotOffset=”20”>
</chart:NumericalAxis>
</chart:SfChart.PrimaryAxis>
<chart:SfChart.SecondaryAxis>
<chart:NumericalAxis RangePadding="Additional" PlotOffset=”20”>
</chart:NumericalAxis>
</chart:SfChart.SecondaryAxis> |
You can refer the below documentation link to know more information on this support.
Regards,
Rachel.
SIGN IN To post a reply.
- 8 Replies
- 6 Participants
-
MI Michael
- Mar 1, 2019 04:48 PM UTC
- Jul 24, 2019 07:12 AM UTC