Pre loader

SeriesInfo.SeriesColor get/set

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

0
0

Hi,

I’m creating a custom legend and need to be able to let the user update the color of the entire series. I don’t necessarily need the power if your IPaletteProvider interface, as I don’t need to vary the color within the series.

The documentation states that SeriesInfo.SeriesColor is read/write, but even when I update the source explicitly, the binding does not seem to push the color to the renderable series:

private void cpickSeries_SelectedColorChanged(object sender, RoutedPropertyChangedEventArgs e)
        {
            System.Diagnostics.Debug.WriteLine(e.NewValue);
            
            var cp = sender as Xceed.Wpf.Toolkit.ColorPicker;
            if (cp != null)
            {
                BindingOperations.GetBindingExpression(cp, Xceed.Wpf.Toolkit.ColorPicker.SelectedColorProperty).UpdateSource();
            }

        }

I’ve turned on verbose logging and confirmed that no warnings are being generated by scichart. Am I approaching this incorrectly? Or is there a method I need to call on the series(which I have not found yet). I’ve confirmed the same behavior between XyScatterSeries and FastLine…

Thanks,
Dan.

  • You must to post comments
0
0

I am considering applying server-side licensing for my javerScript application.

In the document below, there is a phrase “Our server-side licensing component is written in C++.”
(https://support.scichart.com/index.php?/Knowledgebase/Article/View/17256/42/)

However, there is only asp.net sample code on the provided github.
(https://github.com/ABTSoftware/SciChart.JS.Examples/tree/master/Sandbox/demo-dotnet-server-licensing)

I wonder if there is a sample code implemented in C++ for server-side licensing.

Can you provide c++ sample code?
Also, are there any examples to run on Ubuntu?

  • dsantimore
    Ah, thank you. I had not noticed the RenderableSeries property of SeriesInfo. That solves that issue. Regarding the scatter series point colors -- no idea what voodoo you did to achieve that, but it works great.
  • Andrew Burnett-Thompson
    lol @ Voodoo :-D The PointMarker types in SciChart v2.x are not control templates, they use the same bitmap rendering engine that the main chart uses. We provide Circle, Square, Triangle, Cross markers and we also created a SpritePointMarker that works in an identical fashion to the old control templated markers. This one does have a bit of magic to allow the old or new syntax. - Andrew
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.

Try SciChart Today

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

Start TrialCase Studies