score:0

Accepted answer

i found the solution which i was looking for and thought of sharing with you all if it be of any help to anyone someday.

please find the working solution here => jsfiddle solution

below is the solution of hiding the axis line and labels without effecting the gridlines:

yaxis: {
    title: {
        text: 'weight (kg)'
    },
    labels: {
        enabled: false
    },
    linecolor: 'transparent'
},

score:1

according to this document to hide labels we need to labels object and in that object need to pass enabled: false

    yaxis: {
        title: {
            text: 'weight (kg)'
        },
        labels: {
            enabled: false
        }
    },

highcharts demo


Related Query

More Query from same tag