score:1
Accepted answer
It is possible, however, it is not so simple and intuitive to make it as you expect in Highcharts. Check the demo and code posted below, there you will find the solution with pointRange = 0.1
, pointPlacement = -0.5
, min: 0.05
, max: 0.95
and tickInterval = 0.1
.
Code:
Highcharts.chart('container', {
chart: {
width: 420,
height: 350,
style: {
textAlign: 'center',
'text-align': 'center',
},
},
colors: ['#a1cbff'],
title: {
text: undefined,
},
yAxis: [{
title: {
text: undefined
}
}],
xAxis: {
min: 0.05,
max: 0.95,
tickInterval: 0.1
},
series: [{
type: 'column',
pointPlacement: -0.5,
pointRange: 0.1,
data: [
[0.1, 130],
[0.2, 110],
[0.3, 240],
[0.4, 150],
[0.5, 250],
[0.6, 190],
[0.7, 240],
[0.8, 220],
[0.9, 270],
[1, 160]
],
}],
plotOptions: {
column: {
pointPadding: 0,
borderWidth: 1,
groupPadding: 0,
shadow: false,
},
},
tooltip: {
formatter() {
return this.y;
},
},
legend: {
enabled: false,
},
exporting: false,
credits: false,
});
Demo:
https://jsfiddle.net/BlackLabel/wtxd9y2f/
API reference:
https://api.highcharts.com/highcharts/series.column.pointRange
https://api.highcharts.com/highcharts/series.column.pointPlacement
Source: stackoverflow.com
Related Query
- How to hide grid line protrusion in bar chart
- How to hide the Axis line in stack bar chart high chart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- How to change space value between grid and yAxis in Highcharts line chart
- How to draw line plus bar chart using highcharts/d3.js or any other chart library?
- How do I create a bar chart instead of line chart with HighCharts?
- How to show BAr graph rather than line graph in High Stoch Chart
- How to Hide the bottom Line in HightCharts (Splin Chart model)I am using in ios
- How do I hide the code for the chart data in highcharts?
- How do I rotate my HighCharts bar chart so its vertical, not horizontal?
- remove grid line on chart
- How to hide zero values in Column chart
- How to add a plotline to a bar chart in Highcharts?
- How do you remove x-axis labels from a highchart.js bar chart
- Highcharts stacked bar chart hide data labels not to overlap
- Highcharts Bar Chart - How to set the minimum bar width/length
- How to reverse a bar chart in highcharts?
- How do I do a stacked bar chart as a drilldown to a stacked bar chart?
- How can I prevent my HighChart bar chart from being inverted?
- How to place x axis labels on top of horizontal bar chart
- Highcharts: How to set unique images on top of bar chart serie
- How to hide intermediate values of solid gauge chart of highcharts?
- How to remove the grid line overlappings in highcharts?
- How can I add a Bar Chart to my Django based Database?
- how to change color of line chart in highchart based on a categorical column in r?
- Stacked percent bar in a spark line grid for Highcharts
- How to use for loop array to add series dynamically for line chart
- How to display a Bar Chart in DataTable
- How to Make a Dashed Bar Chart Border in Highcharts
- How to render a vertical line when the mouse cursor is on the chart using highcharts?
More Query from same tag
- How do I set multiple unique charts in their own DIVs using an AngularJS directive and Highcharts
- Wanted to plot only one spline at the chart load and further add other splines after loading
- Reset data in stacked chart in highcharts
- Chartkick w/ Highcharts column_chart, specify visibility by series
- Highcharts issue updating chart type: not recognizing highcharts functions
- highcharts in new window with ajax and jquery
- Highcharts version 8.2.0 tilemap doesn't support "square" shape
- Highcharts linked views
- How can I disable on hover marker animation in Highcharts 6.x?
- highcharts tooltip formatter only shows first 8 characters in this.point.name
- How to add negative area or background for a specific bar or pie chart in highcharts?
- How to render Highcharts to div with id as container - Angular?
- High Charts stack column from json object
- angularjs and highcharts, labels not shown unless I hover over the data points
- Coloring a label depending on color of slice and using distance
- Create a floating bar in HighCharts cloud
- A different suffix from an array for each line on Highcharts
- Strange behavior Highcharts pie chart in document mode IE8
- Highcharts.js variable pie chart not rendering data correctly along percentage dataLabels
- Highcharts combination chart from JSON data
- Hyperlinked column in a Highcharts drilldown
- how to make chart real time with 2 line and get data from php with highcharts
- Angular - Highcharts - Color b/w points
- Highcharts x axis categories
- difference between 'stackLabels' and 'dataLabels' in highcharts
- Highcharts axis label before first point
- Highcharts stacked bar negative / positive total
- Style Highchart line chart from psd
- Add custom data on tooltip of Highcharts donut graph
- Highcharts scatter chart with a name per point