score:0
that seems to be a rendering issue in Highcharts (as many others), however you can get a way better result using this settings:
Highcharts.chart('container', {
chart: {
type: 'bar',
},
title: {
text: 'Default title',
margin: 50
},
credits: {
enabled: false
},
legend: {
enabled: false
},
plotOptions: {
bar: {
pointPadding: 0,
}
},
xAxis: {
categories: ['2010', '2011', '2012', '2013', '2014'],
labels: {
x: 5,
align: 'left',
reserveSpace: false,
y: 33,
},
min: -0.2,
max: 4.2,
tickWidth: 0
},
yAxis: {
visible: false
},
series: [{
data: [39.9, 71.5, 106.4, 23, 67],
pointPlacement: 'between',
dataLabels: {
enabled: true
}
}]
});
Hope this helps :)
score:1
If you remove the pointPlacement
option from the series it will work fine.
Highcharts.chart('container', {
chart: {
type: 'bar',
},
xAxis: {
categories: ['2010', '2011', '2012', '2013', '2014'],
labels: {
x: 0,
align: 'left',
reserveSpace: false,
y: -12,
}
},
series: [{
data: [39.9, 71.5, 106.4, 23, 67],
}]
});
<script src="https://code.highcharts.com/highcharts.js"></script>
<div id="container"></div>
Source: stackoverflow.com
Related Query
- Highcharts: xAxis label above bar in horizontal bar charts
- How to add a label above each bar in HighCharts
- highcharts - exported png in horizontal bar charts
- minPointLength is not working for horizontal Trellis bar charts in Highcharts
- Highcharts | Label width control in bar charts
- Maximum bar width in Highcharts column charts
- HighCharts Place Label on Bar
- Highcharts tootip for stacked bar charts
- Hiding label guidelines on Highcharts pie charts
- Highcharts missing first date label on xAxis
- Highcharts - xAxis label for each point
- How to change Highcharts xAxis label color individually?
- horizontal scroll bar in highcharts
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- HighCharts Time-based Quarterly Data - xAxis Label Issue
- Show only first and last xAxis label in Highcharts
- Highcharts markers on bar charts
- Show all labels in highcharts horizontal bar graph
- Laravel 5.5 Console TV Bar Chart High Charts multipleDatasets and label
- HighCharts: Logarithmic Scale for Horizontal Bar Charts
- Centering a data label in Highcharts Bar Chart
- How to add a horizontal line in Column bar chart in Highcharts plugin?
- Why is the first label on highcharts bar chart missing?
- Use of DotNet HighCharts dll to make charts in code behind
- HighCharts + xAxis label formatter
- Highcharts grouped bar charts with multiple axes
- Highcharts - date on xAxis label difference on tooltip
- Highcharts custom xAxis label
- Highcharts label behind the second series (but above the first series)
- How to show xAxis label in tooltip in a Highcharts area chart?
More Query from same tag
- highcharts dynamic spline with fluid size issue in table
- How to export charts in multiple sizes with Highcharts?
- from Google Visualization Datatable to Highcharts data format
- Highcharts + set event click from options in jquery
- How to change default color of a series chart in highcharts?
- how can i do this using highcharts, superposition two series share with yAixs
- rerender view when model property change in EmberJS
- Display all labels in x-axis in HighCharts Stock
- Update HighCharts every 5 seconds
- Highcharts set the default y column values
- Highcharts with JSON data and multiple series
- How can I set the legend symbol color for a series when using colorByPoint?
- convert SVG to Highcharts.SVGRenderer.prototype.symbols
- Change the legend in highcharts heatmap to show instead of a color bar, a set of fixed icons with hide and show on click
- line and column chart in grouped categories in highcharts
- Fullscreen panel bootstrap with highcharts (responsive)
- Duplicating Highchart in php file
- Highstock xAxis Label rotation
- Is it possible to load Highcharts options from a file?
- Add custom metadata to highchart series
- How to set Highchart datetime format to minute?
- Thymeleaf: convert a list of objects to JSON when fields' name should contains a dash
- How add series dynamically in Highcharts without button? (ANGULAR JS)
- No graph displayed using Highcharts
- Highcharts selection, yaxis is undefined
- unable to Add display data values on top of bar high chart
- Creating a chart in angular2 to show the median value of given data
- Unknown Property – yii\base\UnknownPropertyException Setting unknown property: dosamigos\highcharts\HighCharts::scripts
- remove grid line on chart
- Dynamic add charts based on a factory pattern