Remove shadow/background glow on highcharts data label?

Set dataLabels.styles.textShadow to false. plotOptions: { columnrange: { // or general options: “series: { … }” dataLabels: { enabled: true, color: ‘red’, style: { textShadow: false } } } }, Demo: http://jsfiddle.net/oe1vcmqj/2/ EDIT: Since Highcharts 5.0.3, the option name is textOutline. plotOptions: { columnrange: { // or general options: “series: { … }” dataLabels: { … Read more

Format Highcharts y-axis labels

You can call the original formatter from your formatter function: $(function () { $(‘#container’).highcharts({ yAxis: { labels: { formatter: function () { return ‘$’ + this.axis.defaultLabelFormatter.call(this); } } }, series: [{ data: [15000, 20000, 30000] }] }); }); http://jsfiddle.net/x6b0onkp/2/

Place text in center of pie chart – Highcharts

Use this code to center chart title vertically: title: { verticalAlign: ‘middle’, floating: true } Example Edit Since version 2.1 The floating property can be omitted as the documentation states it is implied by the presence of the verticalAlign property When a value is given, the title behaves as floating.

customize highcharts tooltip to show datetime

You can use moment.js to get the values formatted, but Highcharts has it’s own date formatting functionality which would be more idiomatic with Highcharts. It can be attached onto the tooltip option in the highcharts constructor like so: tooltip: { formatter: function() { return ‘<b>’ + this.series.name +'</b><br/>’ + Highcharts.dateFormat(‘%e – %b – %Y’, new … Read more

tech