Xamarin.iOS Legend Checkbox behaviour

TeeChart for Microsoft Visual Studio .NET, Xamarin Studio (Android, iOS & Forms) & Monodevelop.
Post Reply
XamarinProgrammer
Newbie
Newbie
Posts: 9
Joined: Tue Aug 23, 2016 12:00 am

Xamarin.iOS Legend Checkbox behaviour

Post by XamarinProgrammer » Tue Sep 13, 2016 8:29 am

Hello,

I'm new to TeeChart programming. I'm creating an iOS app with TeeChart, wanted to display the legend checkboxes.
So I set:

Code: Select all

Chart.Legend.CheckBoxes = true;
I got the following legend display:
Image

My question is, is this really how the checkboxes look in iOS? My client is expecting something like in the desktop app: (There are actual checks inside and actual box)
Image

If this is really the iOS behaviour, then I must advise my client accordingly. However, if this is not how checkboxes are supposed to be displayed then I can anyone tell me what am I doing incorrectly.

Thanks!

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Xamarin.iOS Legend Checkbox behaviour

Post by Pep » Tue Sep 13, 2016 12:09 pm

Hello,

I'm sorry, TeeChart for Xamarin versions do not include the Legend CheckBoxes feature due to differences between each platform at the time to incorporate the CheckBox component to it.
This feature could be added as a wish for the next future releases. In meantime a workaround would be to do a custom legend by the user.

XamarinProgrammer
Newbie
Newbie
Posts: 9
Joined: Tue Aug 23, 2016 12:00 am

Re: Xamarin.iOS Legend Checkbox behaviour

Post by XamarinProgrammer » Wed Sep 14, 2016 6:30 am

Hi Pep,

Thank you. Do you have any tutorial/documentation that may point me in the right direction on creating this custom legend?

Pep
Site Admin
Site Admin
Posts: 3273
Joined: Fri Nov 14, 2003 5:00 am
Contact:

Re: Xamarin.iOS Legend Checkbox behaviour

Post by Pep » Wed Sep 14, 2016 9:40 am

Hello,

ok,TeeChart for Xamarin.iOS allows custom drawing on canvas by using the onafterdraw event (draw shapes with colors, texts, etc..), but due to limitations for this specific platform I would suggest to create your own legend at the desired position (just below the Chart for example) by using a layout and add there all the shapes with text for the Series and the switches components if needed. You can then interact with the Chart Series and Legend (getting and setting its property values) easily.

Post Reply