score:3
You can put data and hide the series after setting property
ignoreHiddenSeries : false
Here is Working Demo If you hide the series Y-Axis will still be visible.
score:0
FWIW, it seems that highcharts has this functionality built in yAxis.showEmpty
Unfortunately, the fiddle listed in the documentation doesn't work, and there is a related open highcharts issue on the matter:
score:0
Setting min and max for xAxis
and yAxis
is not a good solution! Because if the data is loaded later (When it's resolved), then you won't have auto calculated min and max. In Highcharts API, it's said:
If null, the max value is automatically calculated
So you should set min and max back to null
when the data is loaded. But in my case setting it to null or even deleting the option, didn't result in automatic calculating (Seems strange).
What I did instead was setting charts.showAxes to true! That's it. Take a look at the demo provided by Highcharts
Important: You of course need to set series to something like this:
series: [
{
data: [null, null, null]
},
{
data: [null, null, null]
}
]
Note: Make sure xAxis.showEmpty and yAxis.showEmpty are set true (which is true by default).
score:6
You can put in your min/max values for the xAxis and yAxis and use null for all data.
Forked from @ZaheerAhmed's response above as I figure it deserves a spot as an alternative solution without needing to hide the data after the fact.
i.e.
yAxis: {
min: 1,
max:
} ,
xAxis: {
min: 1,
max: 50
},
series: {
data:[null,null]
}
Source: stackoverflow.com
Related Query
- Highcharts blank chart with x and y axis
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- min and max axis value not respected in HighCharts chart with a logarithmic axis
- Highcharts / jQuery - destroy and rebuild chart with original options
- How to add space between chart and axis in highcharts
- Highcharts connecting scatter chart and pie chart with single legend
- Highcharts - Bar - Setting the X axis width and the chart area width to be constant
- Highcharts 3.0, area chart with stacked and unstacked series - how to fix?
- Highcharts - Global configuration with common code and unique data & Headings
- Highcharts - Area Chart - Stacking with series containing negative and positive values
- Change chart type and redraw with multiple series in Highcharts
- Using wkhtmltopdf with highcharts shows blank chart
- Highcharts bar chart with fixed bar widths and gaps
- Tooltip in chart with line- and scatter plot in highcharts 3.0.7
- Highcharts - creating chart with same scale axis
- Highcharts - bubble chart with titles at x- and y-Axis - Error #14
- How to have a highcharts chart in a container of a fixed width, and with a horizontal scrollbar?
- Is it possible to have two Y Axis in a highstock chart from highcharts one on the left and another on the right?
- Highcharts line chart all points disappear when have more than one points with same X Axis
- how to show column and area charts with different y axis with same category and same x axis in highcharts
- Column chart with negative values and categories on xAxis in HighCharts
- (Horizontal) bar and line chart with Highcharts
- Highcharts multiple x axis and yaxis. The width of the 1st x-axis is not in sync with browser resize
- Can't disconnect line chart with [null,null] and irregular intervals in Highcharts
- Highcharts single horizontal stacked bar chart with data names (labels) and %-ages always shown and data numbers and series name shown on mousehover
- Highcharts drilldown to pie chart - Clicking on axis label with multiple series causes pie charts to overlap
- highstocks intraday chart with timestamp and non decimal y axis
- How to display only last point on highcharts and that point should travel with chart line?
- Highcharts with dual axis and stacking - R
- HighCharts Line Chart draw y axis line for entire line points and only one line
More Query from same tag
- How to insert json within an array into highcharts?
- Rendering HighCharts in AngularJS from Json Object
- Highmaps drill down map select event
- Setting data chart color - Highcharts
- How to properly structure/pass in data for Highcharts.js series chart?
- The opposite X aXis series is not showed in the navigator
- Fourth y axis does not show labels in Highcharts
- Highcharts does not display years on Xaxis when data with NULL values
- How to customize highcharts for this graph
- Format data for highcharts solid gauge graph
- Highcharts Custom Funnel
- How to format Highcharts to get specific json data?
- HighStock: chart gets broken when navigator touches right border
- Highcharts yAxis title click
- Highchart.js Custom Y-Axis Ticker
- HighChart not showing anything
- Highcharts - Cross browser charts have different Y axis ranges, how can I ensure consistency?
- Http call from a service inside a directive controller
- Customise Sankey Highcharts marker and link width
- Using multiple Highcharts in a single page
- why $scope variable inside directive is not getting updated?
- How to draw SVG lines inside HighCharts barcharts?
- Highcharts issue updating chart type: not recognizing highcharts functions
- How to create highcharts maps using Angularjs?
- Highcharts - Rails array includes empty date entries
- tickinterval not working high chart for x axis
- Can't display extra tooltip data in price history chart
- TCPDF not rendering dots (circles) with path variables in text file using imageSVG
- Exporting Highcharts all data
- How to dynamically addEvent to Highcharts series with multiple charts?