score:22
Just try formatting the data label on a column chart, here is an example to get you started.
$(function () {
$('#container').highcharts({
chart: {
type: 'column'
},
xAxis: {
categories: ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec']
},
plotOptions: {
series: {
dataLabels: {
enabled: true,
color: '#000',
style: {fontWeight: 'bolder'},
formatter: function() {return this.x + ': ' + this.y},
inside: true,
rotation: 270
},
pointPadding: 0.1,
groupPadding: 0
}
},
series: [{
data: [29.9, 71.5, 106.4, 129.2, 144.0, 176.0, 135.6, 148.5, 216.4, 194.1, 95.6, 54.4]
}]
});
});
score:5
Really, what this case calls for, is for this to be a bar instead of a column, and category labels that are not rotated, and are clearly readable.
Example:
http://jsfiddle.net/jlbriggs/yPLVP/23/
You can also offset the axis labels to put category name on the bar itself, but really - it's just not as good a way to display as the above example:
http://jsfiddle.net/jlbriggs/yPLVP/24/
These could both be a column instead of a bar still, of course, but rotating the labels is always a bad idea if it can be avoided.
These methods also allow the data label to still be used as a data label should that ever be required.
Source: stackoverflow.com
Related Query
- HighCharts Place Label on Bar
- How to add a label above each bar in HighCharts
- Highcharts: How to provide a custom stack label in highcharts bar graph from within the stackLabel formatter?
- Centering a data label in Highcharts Bar Chart
- Why is the first label on highcharts bar chart missing?
- Highcharts display label for pie chart using html table as data source
- Highcharts - Stacked bar - Possible to have label interval corresponding to data interval?
- Highcharts - Bar chart show full label on Y Axis
- Adding a label to the left and to the right of a bar in highcharts
- Label individual bars in a grouped bar chart in Highcharts
- Highcharts - Place the y-axis plot-line label outside the chart area
- Show label for each bar in highcharts
- How to modify the code so that Highcharts graph does not cover fixed navigation bar at the top of the page?
- Highcharts | Label width control in bar charts
- Disable a complete bar in highcharts when clicking on its label
- Place text in center of pie chart - Highcharts
- How do I rotate my HighCharts bar chart so its vertical, not horizontal?
- Maximum bar width in Highcharts column charts
- Styling bar colors in Highcharts with a gradient issue
- Fixed y-axis label width in Highcharts
- dealing with highcharts bar chart with really long category names
- Highcharts percentage of total for simple bar chart
- Highcharts Change Bar Color Based on Value
- HighCharts - Y-Axis padding in a bar chart
- Highcharts dynamically change bar color based on value
- How do I format x-axis label in highcharts
- print a value on highcharts bar graph?
- How to hyperlink bar graph in highcharts
- Highcharts graph X-axis label for different date ranges
- highcharts jquery dynamic change chart type column to bar
More Query from same tag
- External JSON from API into array?
- Highchart can't be displayed
- How to display custom or non-series data array on Highcharts tooltip on hover?
- Highcharts' bullet graph's serie's doesn't extend all the way
- How can i align the highchart legend pagination to right or left side of the legends?
- Highcharts range selector date formats from C#
- Highcharts Caption when verticalAlign set to 'top' margin does not work
- Updating Highcharts realtime using Socket.io
- Hide 0 values in Stacked Column Chart in Highcharts
- Highcharts svg convert to png with server
- Highcharts - column chart with drilldown to waterfall
- skip data point on x-axis and group by based on data in highcharts
- Highcharts column range change color for negative numbers
- Pie chart with laravel and js
- Highchart - how to control gap between series
- Highcharts yaxis negative values error
- How does Similarweb create their PDF reports?
- How to increase series data label in highcharts packed bubble
- Print session variable (array) in x axis of Highcharts
- Highcharts: Dates Off By 1 Month
- How to change zoomType status in Highchart?
- How to make json array name series name, array data -series data in highcharts?
- How to add class name for each columns of highcharts?
- HighCharts JS showing extra xAxis parameter
- Using image tag as series name in highcharts
- moving plot dynamic by grouping
- I want to capture the starting and end point of all the series in my multigraph and show it in a table using MeasureX of StockTools in Highstock
- jQuery AJAX chart object reference passing?
- Highcharts not rendering properly on legend clicks
- How to set column colors, title colors , font size , font family in external css file for highcharts?