score:2
i wasn't going to post this question at first because i just found the answer (after searching in the docs for a while) but i figured this could help others.
simply make sure you add the formatter callback
in your labels object:
yaxis: {
labels:{
formatter: function(){
if(this.value >= 0){
return this.value;
}
}
}
}
score:3
while your solution works, there is a slightly more generic solution you might like if your intent is always to prevent the yaxis having a label at the bottom left:
yaxis: {
labels: {
formatter: function() {
if ( this.isfirst ) { return ''; }
return this.value;
}
}
},
making use of the isfirst
property that highcharts has on this
prevents your reliance on "magic numbers" (similarly, there is an islast
value if you'd like to try that -- though i don't see as much use for it).
Source: stackoverflow.com
Related Query
- Hide first yAxis label in Highcharts
- Highcharts axis label before first point
- Highcharts missing first date label on xAxis
- Show only first and last xAxis label in Highcharts
- Get x-axis label into the first colomn of the table - highcharts
- Why is the first label on highcharts bar chart missing?
- Hide or Disable Legend or Label in the end Highcharts line
- Highcharts label behind the second series (but above the first series)
- Highcharts display label for pie chart using html table as data source
- Highcharts addSeries yAxis Label Formatting
- highcharts - Hide some labels in yAxis
- My Highcharts graph with multiple axis ignores the max value I set for the first yaxis
- How to rotate first and last x-axis label in Highcharts chart?
- Hide first tick in Highcharts time series
- How to show only the last 100 candlesticks or hide the first 50 candlesticks in Highcharts Stock Chart?
- Add label for highcharts in first element
- Change first tick label on yAxis
- Highcharts with yaxis max property doesn't hide plotbands and lables
- How to show first and last label of x axis Highcharts
- Show only the first and last y-axis label on a graph highcharts
- Decimals on yAxis are not being displayed, even if that same code works on highcharts jsfiddle
- Highcharts - margin top to yAxis label
- Areaspline: edge to edge lines and hide first y label
- Hide the First Value Data in Series HighCharts
- Highcharts - How to format yAxis label to have single digit?
- Highcharts - How to hide the last category tick label on xAxis with scrollbar
- Adding same precision to the yAxis Label of HighCharts
- highcharts add yAxis label based on negative/positive value
- Highcharts - display label on yAxis
- HighCharts Hide Series Name from the Legend
More Query from same tag
- highstocks responsive styling not working in different devices
- Highchart is not working when I am fetching the axis values from database
- highchart/highstock navigator doesn't work with keyboard
- Highchart - Tooltip prevents click
- HighCharts change default x-values spacing to 0.5
- Highchart Polar chart multiple background colors to SVG
- Take snapshot of HighChart with render.text.css
- highmaps usa county map not coloring counties for Nebraska, New Mexico, or New York
- Highcharts: get category name on column click
- Draw highcharts with many year for xAxis
- Gauge Series of Highcharts with React not the Solid Gauge but Gauge Series
- Selection change in Tree Map in High Chart
- Highcharts multi line graphs
- HighChart pie does not display any data
- not able to get refs on addEventListener callback function
- Highcharts too slow when plotting 4000 bars (rCharts)
- how to show the little circle in tooltip of highcharts
- JSON Data Map Issue with HighCharts + Ajax
- Call asynchronous functions inside loop
- show tooltip in highcharts
- Jaspersoft Studio html5 chart (highchart) xAxis label overflowing
- Dynamic High Chart no Displaying
- Create highcharts vue component
- highcharts dynamic spline with fluid size issue in table
- Highcharts live update via EventSource not working
- Cannot send Highcharts to back (z-index) of page
- highcharts panning
- How to enable scrolling in advanced accessible charts in highcharts
- Add conditional color to Treemap
- Show highcharts for database data