AxisScaleBreak Along Primary Axis

Hi Syncfusion Team,

I am currently working on a set of plots that can contain a periodic set of data and was wondering if there was a way to add Scale Breaks to the Primary Axis of an SfChart. Looking through the documentation here: https://help.syncfusion.com/wpf/charts/scalebreaks, the only examples provided are using the secondary axis. I have tried to insert the scale breaks on the primary axis but it does not seem to be appearing.

My goal with the scale break is to be able to hide all but one of the periodic sections, while continuing to show any non-periodic sections before and after within a reasonable scale. In this plot, I would like to be able to only show one of those steps, then insert a scale break in order to hide the subsequent items up until the periodic section is finished, and then continue plotting any subsequent data. 

Is there a way to accomplish this? Thanks!PrimaryAxis_ScaleBreak-min.png



5 Replies

HM Harsha Midadhala Khajareddy Midadhala Syncfusion Team April 7, 2025 01:05 PM UTC

Hi Devin,

 

Thank you for reaching out with your query about adding Scale Breaks to the Primary Axis of an SfChart in your WPF application. We understand your goal of hiding periodic sections while displaying non-periodic sections appropriately.


We are currently investigating the behavior of scale break with xAxis and will provide further details within two business days (April 9, 2025).


Regards,

Harsha.



HM Harsha Midadhala Khajareddy Midadhala Syncfusion Team April 9, 2025 11:07 AM UTC

Hi Devin,

 

Thank you for your patience. Upon further validation, we’d like to clarify that scale breaks are supported only on the secondary axis in the WPF SfChart.

Scale breaks are designed to reduce large gaps in the axis range—not to hide or remove specific data sections. Applying them on the primary axis may hide critical data points and compromise chart reliability.

If your goal is to exclude specific X-axis ranges, we recommend filtering the data points before binding them to the series.

Please let us know if you need help with this approach or have further questions.

 

Regards,

Harsha.



DE Devin April 9, 2025 04:19 PM UTC

Hello,

Thank you for your response and confirmation regarding scale breaks. 

I have implemented filtering to remove all periods except for the first, but it leaves a large gap. Is there a way to customize the axis marks to condense that section into a smaller area? Or potentially extend the NumericalAxis class to allow for inconsistent gaps between axis labels? I'm hoping to get rid of the gap between both sections so the user is able to see the features of the plots. Thanks!

Condensing X-Axes Markings-min.png



DE Devin April 9, 2025 10:40 PM UTC

Hello,

I was able to get it figured out, I shifted the timescale of the data I wanted to plot after the periods as if there wasn't more than one period, then subscribed to the LabelCreated​ event on the primary axis and added the time offset to the displayed values and it works great!

Thanks!



PR Preethi Rajakandham Syncfusion Team April 10, 2025 11:13 AM UTC

Hi Devin,

You are welcome. We are glad to know that the reported problem has been resolved. Please let us know if you require any further assistance on this. We will be happy to assist you.

Regards,

Preethi R


Loader.
Up arrow icon