SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy. We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

Please note: SciChart team will only answer questions from customers with active support subscriptions. Expired support questions will be ignored. If your support status shows incorrectly, contact us and we will be glad to help.

0
0

Hi!

I just upgraded to v2 of SciCharts (there was a bug before that didn’t allow me to do it earlier) and I got a question about the upgrade:

Before v2 I was using my own SeriesValueModifier but now I switched to the included one in the library. My question is, how do I customize the font & background color of the indicator on the Y-Axis?

Look forward to hearing from you.

Best,

Diego

  • You must to post comments
0
0

Hi Diego,

To customize look of SeriesValueModifier, you could set any of the BorderBrush, Background, Foreground properties. Also you can define a Style and apply it to AxisMarkerStyle property:

        <SeriesValueModifier.AxisMarkerStyle>
                <Style BasedOn="{StaticResource AxisMarkerAnnotationStyle}" TargetType="a:AxisMarkerAnnotation">
                    <!--  Assumes data context is the RenderableSeries  -->
                    <Setter Property="BorderBrush" Value="{Binding Background, RelativeSource={RelativeSource Self}}" />
                    <Setter Property="Background" Value="{Binding SeriesColor, Converter={StaticResource ColorToBrushConverter}}" />
                    <Setter Property="YAxisId" Value="{Binding YAxisId}" />
                    <Setter Property="IsHidden" Value="{Binding Path=(c:SeriesValueModifier.IsSeriesValueModifierEnabled), Converter={StaticResource InvertBooleanConverter}}" />
                </Style>
        </SeriesValueModifier.AxisMarkerStyle>

Regarding the second issue, we logged it and will try to investigate. It would be very helpful if you could reproduce it in small project and post/send it (if it is possible).

And about the last issue, could you post here/send us some screenshots showing the desired behavior? It will clarify the request a bit so we will be able to give more precise answer.

Best regards,
Yuriy

  • Diego Guerrero
    Hi Yuriy!Thanks for the reply, I was able to modify SeriesValueModifier with your suggestion.Regarding the second question, I will try to put together a small project that reproduces the error during the weekend, but like I told you in my first post, the application doesn't crash, it just logs the exception to the console and continues (I don't have a try and catch, so the logging must come from your code).Finally, regarding the behavior that I want from RollOverModifier, I've attached 3 files:- ChartWindow.png: shows how my charts look at the moment. I have the price & volume charts synchronized including the RollOverModifier, but all the tooltips are separated. What I want is to merge all the tooltips into one. Basically include the time from the X-Axis and volume on the same tooltip. Also, as soon as I overwrote the AxisLabelTemplate, the label on the Y-Axis appeared, so do I get rid of it?- ChartWindow.xaml (zip): my current implementation of ChartWindow class.- XStudy.png: shows the behavior I want to achieve, basically one tooltip the merges the info from the price and volume charts.I really appreciate the help you guys give, look forward to hearing from you.Best,Diego
  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.