score:1
For those who interested in solution with adding additional data points with null here is it. This is the only way I found so far. Pay attention to the line with 'data', 'floor, 'ceiling', 'categories'. But I still think it's a hack and should be build in feature to do so.
// IMPORTANT! Pay attention that fake null data points added
// in order to display targets line correctly, so index 0 = null
config.series[0] = {
cursor: this.props.onDataPointClick ? 'pointer' : undefined,
type: 'column',
data: [null, ...chartData, null],
pointPadding: 0.01, // to make column full width
groupPadding: 0, // to make column full width
dataLabels: {
enabled: true,
align: 'center',
inside: true,
verticalAlign: 'bottom',
formatter: function() {
return humanReadableValue(this.y);
}
},
point: {
events: {
click: (e) => this.onDataPointClick(e)
}
}
};
Object.assign(config.xAxis, {
floor: 1,
ceiling: config.series[0].data.length - 2,
categories: config.series[0].data.map(x => x === null ? '' : x.name)
});
The result
Source: stackoverflow.com
Related Query
- Highcharts: Combined line and column chart - start / end line on left / right side, not on column chart data points
- Highcharts graph should start entirely to the left and end entirely to the right
- High chart - Column Range Chart with Time range. How to get tooltip as Start and End time
- highcharts column chart with line, need line start at bar start
- line and column chart in grouped categories in highcharts
- Create Line in Highcharts with start and end point
- Highcharts: Remove left and right padding in column chart
- hightchart line and column chart , line not start with start of chart
- Show Column and line chart together in drill down using highcharts
- How to create a column range chart in Highcharts using range and navigator functions?
- Highcharts - best way to handle and display zero (or negative) values in a line chart series with logarithmic Y axis
- Highcharts series graph to start and end on tick and end on max
- Highcharts column + line combination chart with multiple series. Issue aligning line over the column
- I want to add a line to each column in a Highcharts column chart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- Highcharts show the same yAxis start and end value with multiple data series
- How to change space value between grid and yAxis in Highcharts line chart
- Get the end points of each bar in a highcharts column chart
- Highcharts change symbol and hover text of individual points Line Chart
- HighCharts - how to align (justify) xAxis labels left and right
- Is it possible to have two Y Axis in a highstock chart from highcharts one on the left and another on the right?
- Column chart with negative values and categories on xAxis in HighCharts
- How to have first level as column chart and second level as Fixed placement columns in drill down highcharts
- (Horizontal) bar and line chart with Highcharts
- Align X-Axis label on a straight line in Highcharts Column Chart
- HighCharts issues in Dual axes, line and column charts
- Can't disconnect line chart with [null,null] and irregular intervals in Highcharts
- Highcharts - three series using left Y axis and the fourth using the right Y axis
- How to plot a line and column chart in react-highstock?
- Highcharts combination of line chart and treemap
More Query from same tag
- Why do my highcharts yaxis tick positions change the min and max of my chart?
- Get javascript highcharts to render inside a Bootstrap Popover
- Data label position
- Highcharts resetZoom xy after klickin on a rangeSelector
- changing page output view after click event on highchart plot point
- Highcharts setData not working when using same array reference
- highcharts, possible bug setting tooltip formatter and html?
- what is datetype is this in highcharts
- Highchart bullet map plotBackground color always visible
- Generate a highchart based on the output of an array
- Highcharts - How to Make the legend item width half of the contianer?
- Is there any way to highlight the node on search in network chart when using highcharts in angular application
- How to display consistent datetime label formats in xAxis using highchart?
- highcharts dataLabels support RTL with enable hover it for show tooltip
- How do you get the extreme y-axis values in HighCharts?
- Vertical align legends in highcharts with two column
- Disable the UTC timezone
- Displaying or aligning to End of Month, in X-Axis
- Gantt Chart in HighChart?
- How to let x axis title still show on the bottom when setting fontsize attribute in Highcharts
- Highcharts bar and line issue
- How to change the background color the chart area in high charts?
- Issue configuring Highcharts/ Highstock candlestick (React JS)
- Highstock not showing all series
- import data from localhost(phpmyadmin) to a web page"Highcharts"(as a project in phpmyadmin)
- Highcharts tooltip background according to line
- I can't return my json object
- Highcharts - TickInterval with datetime values
- How to export gauge chart with custom marker using highchart?
- Highcharts - Get crossing point of crossing series