Hello all,
I'd first like to say that these forums have been extremely helpful to me so far, and thank you to the people asking insightful questions and to the people taking the time to respond.
My issue today is that I can't seem to get my secondary axes to be visible just by setting their visibility property. I was wondering if there are some other properties that need to be set, or if there is some sort of data requirement.
The strange thing is that visibility works fine for my primary axes, which leads me to believe that I am providing something there that is required. I have also debugged and ensured that I am passing the correct value to the binding.
I have included the xaml for one of my axes below:
<igWebChart:Axis AxisType="SecondaryX" Visibility="{Binding SecondaryXAxisVisibility, Converter={StaticResource BooleanToVisibilityConverter}, FallbackValue=Collapsed}" AutoRange="{Binding SecondaryXAxisAutoRange}" Minimum="{Binding SecondaryXAxisMinimum}" Maximum="{Binding SecondaryXAxisMaximum}" Unit="{Binding SecondaryXAxisUnit}">
<igWebChart:Axis.MajorGridline>
<igWebChart:GridlineGroup Visibility="{Binding SecondaryXAxisGridlineVisibility, Converter={StaticResource BooleanToVisibilityConverter}}" Stroke="{Binding SecondaryXAxisGridlineColor}"/>
</igWebChart:Axis.MajorGridline>
<igWebChart:Axis.Label>
<igWebChart:LabelGroup Angle="{Binding SecondaryXAxisLabelAngle}" Format="{Binding SecondaryXAxisLabelFormat}" FontFamily="{Binding SecondaryXAxisLabelFontFamily}" FontSize="{Binding SecondaryXAxisLabelFontSize}" Foreground="{Binding SecondaryXAxisLabelFontColor}"/>
</igWebChart:Axis.Label>
</igWebChart:Axis>
Any insight would be appreciated. Thank you for your time.
Hi Matt,
Thank you for your post. I have a couple of questions regarding the project where you took the above XAML snippet from.
1). Do you have Primary axes created in this project as well as secondary axes?
2). If you do have primary axes, do you have data plotting on them?
3). Do you have any data plotting on your secondary axes?
Thank you,
Marisa
Hello Marisa,
1) I actually have all four axes explicitly defined in the xaml, in the same way you see in the snippet. All of the bindings are exactly the same.
2/3) For the primary axes I DO have data plotted against them - is there some mechanism required to explicitly plot data against the secondary axes, and is this necessary for the axis to be visible? If so, is it possible to have a series plotted against both a primaryY and secondaryY axis simultaneously? The end result I am going for is depicted in the following capture.
Thank you for your quick response!