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!
Hi Will,
In order to see the secondary axes you've created in XAML, you will need to plot a series of data against them. You can do this by setting the AxisX and AxisY properties of your series to the names of your SecondaryX and SecondaryY axes respectively.
<igWebChart:Axis AxisType="SecondaryX" x:Name="secondaryXAxis"/>
<igWebChart:Axis AxisType="SecondaryY" x:Name="secondaryYAxis"/>
<igWebChart:Series ChartType="Line" AxisX="secondaryXAxis" AxisY="secondaryYAxis"/>
This will plot your LineSeries on your secondary axes you've created. It's not possible to plot the same series against a PrimaryY and SecondaryY axes, but you can create two different series with the same data and plot one against the PrimaryY axis and the other against the SecondaryY axis.
Once you plot some data on your secondary axes, you should be able to see these at runtime.
Hope this helps!
-Marisa
This thread helps me greatly in what I am doing right now, but I have one small question. If I am plotting a series against a SecondaryY axis, do I need to have a SecondaryX also or will it use the PrimaryX if I do not specify?
Hi ksanders,
You are correct. If you plot a series against the SecondaryY axis, but do not specify the AxisX property on the series, it will automatically use the PrimaryX axis (as long as you've declared one).
HI,
This issue should be resolved in the latest service release.
Sincerely, Matt Developer Support Engineer
As a related note - when I do have multiple series within the same chart, the labels along any shared axis overlap in a completely unacceptable fashion (the Primary X axis in the attached image):
A bug has been submitted for this issue and is currently in review by our developers. For your reference, the bug number is 28893. I will contact our Developer Support team and have them link you to this bug so you can be notified when it's fixed.
Thanks,Marisa
I have encountered a problem with bar/column charts that are using multiple series, with each series using a different set of axes. It appears that if two series don't share the same X and Y axes, they overlap. This is desireable in some cases, but in the case where I want the bars/columns to appear side-by-side, it's a problem. I'm looking to do something like this:
Thanks!
Hi there,
Would it be possible to send me a small sample project that demonstrates the problem you are seeing?
Thanks,