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
- HeighCharts SVG Keep font-size fix
- How to display datapoint labels / values in Rickshaw graph visualizations?
- Updating Highchart Series Data with Formatted AJAX Return
- Highcarts function not being recognized
- Highcart Set From and To when I start
- How can I change a Highcharts bar color based on a third field?
- Highcharts not responsive for all series in chart
- Hide svg parts on print
- How to change text color of bubble on Highmap on select state?
- Highcharts Gauge not showing in Angular
- Scatter chart with simple liner regression
- Highcharts value bars with full height background bars
- Bell Curve with django is not working
- How to fill dynamic json value in drill down highchart
- chart not updating after changing the chart options
- How to get 2 data-points with one name in series Line Graph Highcharts Reactjs
- How can I load a custom popup on a click event in Highcharts?
- Append the data values in Highcharts
- HighChart hide other series on click legend
- Highcharts Table y-axis maximum value
- Highcharts: First X Point over the YAxis
- Highcharts / highstock how to change title of chart in IE?
- Highcharts (highstocks) tooltip does not work on latest firefox 64.0 with useHTML=true
- How to edit highstocks.js for 2 datepickers
- Highcharts not rendering properly with too many series
- Custom Marker (Rectangle with rounded corner) for highcharts scatter graph
- How i can increase size of legends in line Highchart
- Possible to use Highcharts Scatter Plot with categories?
- Highcharts programmatically add extra text label to y axis
- Issue to add dynamic value in Highcharts jquery