score:12
Accepted answer
Have you consider using xAxis.gridLineWidth and xAxis.gridLineColor parameters? http://api.highcharts.com/highcharts/xAxis.gridLineWidth http://api.highcharts.com/highcharts/xAxis.gridLineColor
$(function() {
$('#container').highcharts({
chart: {
type: 'spline',
inverted: false
},
xAxis: {
reversed: false,
gridLineWidth: 1,
labels: {
formatter: function() {
return this.value + 'km';
}
},
},
yAxis: {
title: {
text: 'Temperature'
},
gridLineWidth: 0,
labels: {
formatter: function() {
return this.value + '°';
}
},
},
legend: {
enabled: false
},
series: [{
name: 'Temperature',
data: [
[0, 15],
[10, -50],
[20, -56.5],
[30, -46.5],
[40, -22.1],
[50, -2.5],
[60, -27.7],
[70, -55.7],
[80, -76.5]
]
}]
});
});
Here you can see an example how it can work: http://jsfiddle.net/r3wd8j7t/1/
Source: stackoverflow.com
Related Query
- Highcharts: xAxis with vertical gridlines
- Highcharts chart with 'datetime' xAxis - use categories on drilldown
- Wrong alignment in highcharts datetime points with xaxis
- Highcharts - Global configuration with common code and unique data & Headings
- Difference between highcharts and highstock during real time trace and xAxis with max value
- Highcharts problem with xAxis using multiple series
- Only 3 steps on xAxis with type xAxis in Highcharts
- Highcharts plotLines with multiple xAxis and yAxis
- How can I align gridlines with dots in Highcharts
- Connect two different values with vertical line in highcharts
- Highcharts vertical stacked bar chart with negative values, is it possible?
- passing formatting JavaScript code to HighCharts with JSON
- Dynamic Highcharts with maximum xaxis points
- Column chart with negative values and categories on xAxis in HighCharts
- highcharts xaxis datetime label with minor tick
- Vertical align legends in highcharts with two column
- Highcharts - XAxis Label with LineFeed - how to make smaller gap?
- pointPlacement in Highcharts Heatmap with datetime xAxis
- Highcharts series visibility with csv data source
- How to display specific years only on xAxis in a column-graph with Highcharts
- move one vertical line with mouse over and find intersection point with two highcharts
- How to have multiple highcharts with different series data in vuejs without repeating code
- Highcharts afterAnimate in combination with xAxis max
- HighCharts basic bar chart provide the xAxis categories with Series
- show two different series with different start intervals with the same xAxis highcharts
- Why code of Horizonal line(y-axis) on a single in Highcharts get applied to all other charts integrated with Webdatarocks
- Highcharts AreaRange Chart issues with xAxis and last data point label
- Highcharts cloud issue with data source when duplicating chart
- Highcharts does not display years on Xaxis when data with NULL values
- UTC number getting displayed on xAxis with highcharts
More Query from same tag
- Angular-Highcharts: Chart Pie is not working when change between tabs
- Access props and state of current component in React JS within an event handler
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- Highcharts Double Click To Select
- Highcharts {Pie} - Remove slice pieces out onclick
- Highcharts large treemap How do I get the clicked node data?
- Highcharts highlight area between two lines
- How to change line color between points dynamically?
- Using Highcharts with Rails 6
- HIghcharts tooltips only for start and end point.
- Hiding items in highchart legend
- Get values formatted on tooltip
- Highcharts : How to remove the gap between series and vertical axis?
- highcharts - need to auto scroll on x-axis on every 5 seconds with hide scroll bar
- Highchart single point of data is not displaying
- Visual difference between different charts
- Highchart gauge not displaying min/max value in Vue.js
- How to place dataLabels on series point in Highcharts
- How to remove the decimal .00 from the default highcharts configuration?
- HIghcharts Treemap Groupby leaf objects at Level 1(Parent) and group by child at Level1(Sub objects)with custom color coding
- Bar with negative stack and positive labels
- Maximum call stack size exceeded when trying to access highcharts via selenium
- While loop not working in the series data highcharts - php
- Loading data to Highchart from MySQL and displaying in appropriate way
- Creating highstock zoom-in/out button
- Highcharts zoom issue when panning reversed xAxis
- How change time frame in hc_xAxis - month in quartal
- Cannot display a legend with special character in highchart from the serie name
- Angular Highchart multiple values in tooltip
- How to get the DOM properties from event.target, so I can compare them?