score:13
this actually turns out to be a much sought after question/answer. since highcharts v2.2, it is possible to assign "showempty: false" to y axis definitions and this will ensure that when hidden, the y-axis text label is also hidden. example snippet of config below:
yaxis: [{
min: 0,
showempty: false,
labels: {
formatter: function() {
return this.value;
},
style: {
color: '#3366cc'
}
},
title: {
text: 'clicks',
style: {
color: '#3366cc'
}
},
id: 'clicks'
},
...
i have read reports where this showenabled = false breaks if both min and max are also set. in the case above, where only min is set, it worked well for me using highcharts v3.0.5
score:0
@arcseldon, it is true that showenabled = false breaks if both min and max are also set. a possible workaround in this case is to set floor and max instead
score:1
you can use yaxis.settitle() and set/remove the title when needed.
here is the api documentation link
Source: stackoverflow.com
Related Query
- Javascript Highcharts v3.0.5 - How to hide Y Axis Title when using multiple Y Axis
- How to update the HighCharts title using drill-up when there are multiple charts on same page?
- How to hide color axis in heatmaps using highcharts
- How do I plot the x axis line using Highcharts when pegged at 0?
- How to hide Series Name in HighCharts Tooltip when using pointFormatter
- How to get points information when hovering over axis labels in highcharts using custom-events library?
- How to let x axis title still show on the bottom when setting fontsize attribute in Highcharts
- How do I dynamically change a data point in Highcharts using JavaScript
- JavaScript error when using Highcharts
- How to change axis label size when exporting in Highcharts / Highstock
- How to hide one series data info in tooltip using highcharts
- Multi-Line Title is not working when we export to PNG using CanVG - Highcharts
- when printing page with highcharts using javascript this.print() width values in css in @media print seem to be ignored
- How to remove outer shadow when hovered from highcharts JAVASCRIPT
- Highcharts - how to create multiple y axis and group the data series
- How to show multiple pie charts using highcharts
- How to render multiple HighCharts using a queue to prevent long load times
- Highcharts - Line disappears when using logarithmic axis
- How can I hide non-selected series and axes when using XY zoom with highcharts?
- How to make multiple charts using highcharts in a loop?
- Strange behavior with highcharts when using "column" type and multiple datetime series
- How to include highcharts exporting module when using webpack?
- How to draw multiple highcharts using highcharts-ng and angularjs
- How to specify a range of data when using HighCharts with <table>?
- How to hide an element using javascript
- How do I completely hide the chart title in a HighCharts chart?
- How to decrease sensitivity of automatic axis adjustment in Highcharts when dragging points
- Javascript not working when using async attribute : Highcharts
- How to add title of axis in Highcharts
- HighCharts title styles i.e textDecoration property not applying when we export the chart using canvg
More Query from same tag
- Highcharts stock chart Unix date format
- Highcharts Tick Positions are not aligned on multiple Y-axises
- Change in highcharts version breaks animation of elements
- HighCharts - dynamic graph & no tick mark on the right hand side dual axis
- Dynamically add a Highchart point while preserve categories
- Needing to convert JSON Object to JSON Array for Highcharts
- Click-and-stay-highlighted option in Highcharts line chart?
- Get y point from x given point hightcharts
- Highcharts yaxis price line
- Highcharts Line Chart - Some categories are not visible
- Using google translate with highcharts
- Highcharts parse json string for x-axis grouped categories
- Highcharts timeline series positioning
- Hide/Display Flag in Highstock based on the range selection
- highcharts does not seem to be rendering
- Highstock Trigger javascript when range selector button clicked
- Highcharts Treemap
- Add Y axis to highchart dynamically at bottom of the 1st chart without reducing the size of the previous chart
- Dynamic data in Highcharts geomaps
- Highcharts - How would I use HTML input boxes to input the data for a Pie Chart?
- Add borderColor for map Highcharter R
- Highcharts with boost not rendering correctly at small intervals
- change axis crosses in Highchart
- HighCharts Sankey + NextJS: TypeError: Cannot read property 'Core/Series/Point.js' of undefined
- Highstocks: Move Renderer elements along with navigator/ Draw Trendlines
- Is there a way to get the coordinates of a Segment that I draw on the HighCharts stockChart?
- Highcharts - ensure visual continuity when dynamically updating chart?
- HighCharts starts zooming when scrolling in a 3D chart
- Highcharts: Align two Y-Axis with different values
- Highcharts: circle with image background