We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.

Is there a way to make the interval of both axis equally spaced?

I'm making a mathematical chart software and it would be very important that the interval between the axis numbers are equal in number of pixels. Does anyone know a way to do this?

Example:

I would like the two regions marked below to always be equal in size, regardless of screen size.

5 Replies 1 reply marked as answer

LP Lokesh Palani Syncfusion Team February 6, 2023 03:48 PM UTC

Hi Lucas,

Greetings from Syncfusion,

In Axis, the interval will be calculated based on the minimum and maximum values of the given data source, and the space between the intervals may vary based on the screen size. We are looking for a feasible solution to achieve your requirement. We will update the further details in two business days on 8 February 2023 and we appreciate your patience until then.

Regards,

Lokesh Palani.

LS Lucas Santos Campos replied to Lokesh Palani February 6, 2023 04:30 PM UTC

Hi Lokesh, greetings and thanks for the reply :)

I will be waiting for that.

If I manage to solve it before, I will post the solution here to help anyone who may need this functionality in the future.

YG Yuvaraj Gajaraj Syncfusion Team February 8, 2023 03:03 PM UTC

Hi Lucas,

Unfortunately, it is not possible to have an equal interval on both axes with equal spacing in a chart when the chart has different width and height. Even when the chart has the same width and height, the interval spacing is dependent on the visible range and data points, making it impossible to achieve a constant spacing between the interval on both axes.

If you have any further questions, please don't hesitate to reach out to us.

Regards,

Yuvaraj.

Marked as answer

LS Lucas Santos Campos replied to Yuvaraj Gajaraj February 8, 2023 10:19 PM UTC

Hi Yuvaraj, thanks for your feedback.

LA Lavanya Anaimuthu Syncfusion Team February 9, 2023 06:03 AM UTC

Hi Lucas,

Most Welcome. Kindly get back to us if you have further queries. We are always happy to assist you.

Regards,

Lavanya A.