score:1
Accepted answer
You can render other lines in the same positions as the horizontal ones. Please check the below solution:
chart: {
events: {
render: function() {
const points = this.series[0].points;
points.forEach(point => {
const nextPoint = points[point.index + 1];
if (nextPoint) {
const d = [
'M',
point.plotX + this.plotLeft - 1,
point.plotY + this.plotTop,
'L',
nextPoint.plotX + this.plotLeft + 1,
point.plotY + this.plotTop
];
if (point.customPath) {
point.customPath.attr({
d
});
} else {
point.customPath = this.renderer
.path([])
.attr({
d,
stroke: 'red',
'stroke-width': 7
})
.add();
}
}
});
}
}
}
Live demo: http://jsfiddle.net/BlackLabel/wc5zrax9/
API Reference: https://api.highcharts.com/class-reference/Highcharts.SVGRenderer#path
Source: stackoverflow.com
Related Query
- How to customise step line chart in Highchart?
- how to change color of line chart in highchart based on a categorical column in r?
- Highchart how to create lollipop type chart with circle and line top/bottom at different positions
- How to add inline legends to line / area mixed chart in highchart
- How to make drill down in stacked Column Line chart in Highchart
- Highchart step line chart tooltip show old data when there is no data
- How to display highchart series line marker symbol from tooltip formatter?
- How to export a Highchart chart to PDF thanks to a button outside the chart?
- How to create a new Highstock chart with new Highchart and not jquery?
- Highchart Area Range chart with gradient that follows the line
- how to reset Highchart chart width in percentage on Button click
- How can I extend the lines of this Highchart series to the edges of my chart area?
- How can I prevent my HighChart bar chart from being inverted?
- How to add Legend in highchart compare stock chart
- Showing marker for separate values only in line chart in HIghchart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- Highchart how to animate from the xaxis bottom line upward
- Highchart showing indicator at last point for line chart
- HighChart : plot line click event for multiple chart
- Set line opacity in highchart line chart
- How to set border in column chart - Highchart
- How to change space value between grid and yAxis in Highcharts line chart
- how to dynamically change column chart to mirror chart using highchart
- How to use for loop array to add series dynamically for line chart
- How to change tooltip of a column chart programmatically in highchart
- How to make two charts using highchart show up in the same line side by side using div
- How to render a vertical line when the mouse cursor is on the chart using highcharts?
- How to remove sliced line from pie high chart if there there is only one object in data
- Highcharts - How to force line chart to be visible above X Axis
- how to create simple schedule chart with highchart
More Query from same tag
- How to render Xaxes with time in hours, days, ... from 0 to infinity
- Alignment issue in High chart's bar chart
- Y axis values merging with candles in highcharts
- Highcharts: show multiple days data on same chart making them overlpa each other to comparison
- Link multiple axis in highcharts
- Highcharts - Changing chart type
- Highcharts error 14 in chart from HTML table
- Highcharts {Pie} - Change dataLabels connector curve
- skip data point on x-axis and group by based on data in highcharts
- Moving dataLabels for a Highcharts timeline all to one side
- adding live data to highstock Using json file
- yii highcharts how to set date format in x-axis
- highchart- how do I hide y-axis, when y-axis is set with max and min limits
- Is highcharts.js capable of formatting integer timestamps into dates?
- Highcharts: picking points in one chart and have the same points highlight in other charts
- Highcharts - apply gradient on custom colors
- Highcharts - Multiple Axis Graph not displaying labels
- Highcharts in angular scope problem with passing class reference
- How to achieve the best possible performance with mutable data and real-time charts in React?
- How to plot the X axis data point for uneven tick interval at in Highcharts
- Dynamic resizing height not working of bar chart as number of teams increasing in my case
- Variable tick length in highcharts
- Highcharts: how to set legend label name after chart created?
- Highcharts not working on Heroku environment, works on local environment
- Highcharts phantomjs export server can't parse json string
- How to render highcharts from column to colum and pie( per catagory)
- Is it possible to mix columns with a horizontal line on each category?
- Highcharts data series label. for each data point
- Unable to assert axis label text in highcharts using Geb
- Need help on viewing Chart values