Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8828511
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T07:37:21+00:00 2026-06-14T07:37:21+00:00

I need change first tick label on yAxis. I changed the minimum value on

  • 0

I need change first tick label on yAxis. I changed the minimum value on the yAxis:

yAxis: [{
    title : {
        text : 'Position'
    },
    gridLineWidth: 1,
    startOnTick: false, 
    min: 1, //changed min value
    reversed: true,
}]

but the value is not shown in front yAxis. How to sign the first value in the yAxis?

Here’s my chart.

if I write:

yAxis: [{
    title : {
    text : 'Позиция'
    },
    startOnTick: false, 
    showFirstLabel: true,
    min: 1,
    reversed: true, 
    tickInterval: 1,
    labels: {
          formatter: function() {
            if (this.value < 1)
                return null;
            else if (this.value == 1)
                return this.value;
            else if (this.value % 2 == 0)
                    return this.value;
        }
    }

}]
then scaling yAxis turns bad for my data 🙁 chart

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T07:37:22+00:00Added an answer on June 14, 2026 at 7:37 am

    You can define your own yAxis.tickPositioner to define all positions where you wish a tick should be placed.

    Since in your case you don’t want to override the entire behavior, but just place a tick at the min position, you can leverage the axis.getLinearTickPositions(interval, min, max) method to get the array of default positions that would be otherwise generate, and then append your additional ticks to this array.

    The code below has ticks added on both the min and max of the y-axis

    yAxis: {
        showFirstLabel: true,
        showLastLabel: true,
        tickPositioner: function(min, max) {
            // specify an interval for ticks or use max and min to get the interval
            var interval = Math.round((max - min) / 5);
            var dataMin = this.dataMin;
            var dataMax = this.dataMax;
            // push the min value at beginning of array
            var positions = [dataMin];
            var defaultPositions = this.getLinearTickPositions(interval, dataMin, max);
            //push all other values that fall between min and max
            for (var i = 0; i < defaultPositions.length; i++) {
                if (defaultPositions[i] > dataMin && defaultPositions[i] < dataMax) {
                    positions.push(defaultPositions[i]);
                }
            }
            // push the max value at the end of the array
            positions.push(dataMax);
            return positions;
        }
    }
    

    Show tick on min and max of y axis | Highchart & Highstock @ jsFiddle
    Demo of your chart @ jsFiddle

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I need to change only the first value of a title. I did something
First off I need to change my script tag from text/html to text/javascript to
I need to change the text of a label on a C# Winform that
I need change first image in Galleria fullscreen theme ( link ) after Galleria.run().
I need to change the first letter of every line in a file to
I need change background of all text that have two spaces from the start
Need to change li position by clicking to move up or to move down.
I need to change the font color on the first link. <a href=/default.aspx class=content>Frontpage</a>
I created web part (something like wizard) and need change item value in list,
I need to change the td background to grey and text in another td

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.