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.

1

0

I need axes as described below. I can either modify your existing axis control or add my own in a canvas next to the SciChartSurface. So far I have been unable to modify your existing axis to fit my needs. A Y axis should look like this typical logarithmic axis (range 2 to 2000):

|----------------- Resistivity ------------------|
2 2000

The specifications are 1.) Tick marks only at the end 2.) Title straddles the axis 3.) One axis per curve on the chart 4.) Axis uses same color as curve 5.) Axis uses same dash pattern as curve 6.) The edge of the chart is not an axis

This is basically a combination of a legend with multiple axes. I have not been able to get this effect with existing controls, so I have started to make my own in a canvas. To do this I need to line up my two tick marks with the edges of the chart. How can I obtain the location of the edges?

Thanks for your inquiry. Actually I have some ideas for you to try, maybe you don’t need to write a custom control. So first of all, you should hide the axis labels and ticks setting DrawLabels and DrawMinor/MajorTicks to False. Then, it’s possible to modify the axis title setting the TitleStyle property, as it is demonstrated in the Xaml Styling example. You could set HorizontalAlignment to Stretch on it, and put 2 Lines and a TextBlock inside, binding/setting StrokeDashArray of the lines. Also setting the Margin to a negative value will allow to shift the title upper(to overlay the axis).

To get two large ticks at the edges, you should configure the BorderThickness property so the side lines appears, like it is done in this example:

<s:NumericAxis BorderThickness="2,0,2,0" BorderBrush="..." ... />

And, finally, to get two labels at the edges, you could set up two TextBlocks and bind them to VisibleRange.Min/Max correspondingly.

Also it is possible to override the TickProvider in the way that it would generate only 2 ticks.

Please let us know if this approach is convenient for you. Feel free to comment if you have any questions,