Pre loader

1

Welcome to the SciChart Forums!

  • Please read our Question Asking Guidelines for how to format a good question
  • Some reputation is required to post answers. Get up-voted to avoid the spam filter!
  • We welcome community answers and upvotes. Every Q&A improves SciChart for everyone

WPF Forums | JavaScript Forums | Android Forums | iOS Forums

All Answers » Re: Xamarin.iOS LegendModifier show legend data for specific axis. » Comments for "Re: Xamarin.iOS LegendModifier show legend data for specific axis."
  • Lazar Nikolov
    Hey Nazar, Thanks for giving me the direction using the DataSource. There’s one thing though, when I’m initializing the SCISeriesInfoLegendDataSource the DataSet is null, and later when we try to do dataSource1.DataSet.Add(rs1.ToSeriesInfoWithHitTest(info)); it crashes because the DataSet is null and therefore we can’t fill it with data. How do we make sure that the DataSet is not null? I tried initializing it but it doesn’t allow me to instantiate with no arguments in the constructor.
  • Nazar Rudnyk
    you should use the ctor which takes legend as a parameter.
  • Lazar Nikolov
    There is no constructor which takes a legend as a parameter. There are 3 constructors: empty, IntPtr and NSObjectFlag.
  • Lazar Nikolov
    The version of the package is: —— SciChart.iOS 2.2.1.839
  • Nazar Rudnyk
    Hi Lazar, there were an issue with Xamarin bindings, which is fixed in v2.2.2.854. Please try it and let us know if that works.
  • Lazar Nikolov
    Hi Nazar. It seemed that I’ve been missing the Bleeding Edge nuget source, but I have it now. I have one more thing, I have 2 graph surfaces, 4 legends (top left right and bottom left right) and 4 legend modifiers. In the top modifier collection, I’ve added the top left and right modifier and same for the bottom modifier collection. But the result is still the same. I have only 2 legends, top and bottom. Have in mind that I’ve set the Position in the LegendModifier to be Left and Right correspondingly, but still end up with only Left legends. What could be the problem?
  • Lazar Nikolov
    Can you help me with this one, please?
  • Nazar Rudnyk
    you can use legend independently from legendModifier and place it wherever you want
  • Lazar Nikolov
    How would I do that? I tried wrapping it in a Legend Modifier and adding the legend modifier to the Graph Surface but it didn’t display 4 legends, but 2 legends with the data merged.
  • Lazar Nikolov
    I tried adding it as a subview to the view, but that didn’t work as well. I’m checking the Frame of the legends, it does have Width and Height and the X and Y coordinates of the view are correct, but it still doesn’t show up.
  • Nazar Rudnyk
    at this point, i would ask you to provide some code, so we can reproduce your issue on our side. Thanks in advance

Try SciChart Today

Start a trial and discover why we are the choice
of demanding developers worldwide

Start TrialCase Studies