Log axis minor ticks

Posted by: benoit.laplante on 17 June 2024, 3:27 pm EST

  • Posted 17 June 2024, 3:27 pm EST

    Hi, I would to display minor ticks on log axis

    From the log axis demo: https://developer.mescius.com/wijmo/demos/Chart/LineArea/LogarithmicAxis/angular

    I changed the angular axisX element to:

    <wj-flex-chart-axis [wjProperty]=“‘axisX’” [logBase]=“10” minorTickMarks=“Inside” >

    with no effect when there is space to display 5 minor ticks between 1 and 10. It seams the default behavior is not to show any, but I also tried many different configuration of minorUnit with no success.

    How to display 5 minor ticks with current demo dataset ?

  • Posted 19 June 2024, 1:47 am EST

    Hi Benoit

    The observed behavior is by design. When using the logBase property of AxisX in a chart, minor tick marks will not appear due to the nature of logarithmic scaling. In a logarithmic scale, the intervals between tick marks are exponential rather than uniform. For example, with a log base of 10, tick marks are at 1, 10, 100, etc., leading to non-uniform spacing.

    Minor tick marks are generally placed at regular intervals between major ticks. On a linear scale, this is straightforward as the intervals are evenly spaced. However, on a logarithmic scale, the intervals grow exponentially, complicating the placement of minor ticks and potentially causing them to not render.

    Regards

  • Posted 20 June 2024, 12:02 pm EST - Updated 20 June 2024, 12:07 pm EST

    Hi Sonu,

    After discussing with our clients, they argue minor ticks or gridlines are important in log scale to see where the point sit on the scale. I agree, it is a complicate thing to calculate when the domain is not known in advance and the chart can be resized. This is the reason we want a chart lib to calculate this for us. Also, wijmo chart auto log major tick placement are quite far apart compared to linear scale, there is space to add minor ticks.

    I asking for a feature request to support of auto minor ticks and gridline for log axis. I attached an image of excel charts using auto minor tick and gridline using the same data set as wijmo log axis example. I also attached an image of wijmo charts showing how far apart he major labels on log scale versus linear scale.



  • Posted 21 June 2024, 8:19 am EST

    Hi,

    I appreciate your understanding, I have escalated your enhancement requirements to our development team for review with an internal tracking ID WJM-34192. I’ll update you on this as soon as I hear back from them.

    Regards

  • Posted 9 September 2024, 1:28 pm EST

    Hi, did the development team had the chance to review internal track ID WJM-34192?

  • Posted 10 September 2024, 12:41 am EST

    Hi Benoit,

    The development team has reviewed your request and has decided to consider it as an improvement. It has been added to the “To Do” list, with a tentative release scheduled for the last week of December this year. Rest assured, we will keep you updated as soon as there is any development related to this case. Thank you for your patience.

    Regards,

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels