ho incontrato lo stesso problema, e hanno trovato questa soluzione tramite Highcharts forum di supporto: http://highcharts.uservoice.com/forums/55896-general/suggestions/3073133-pie-title
I Highcharts tizio ha scritto un plugin che si può vedere a lavorare sul seguente jsfiddle: http://jsfiddle.net/highcharts/tnSRA/
Ho copiato questo plugin in un file highcharts-plugins.js che ho incluso nel mio sito web, funziona come un incantesimo!
Ecco il codice del plugin:
/**
* Pie title plugin
* Last revision: 2012-12-21
*/
(function (Highcharts) {
Highcharts.wrap(Highcharts.seriesTypes.pie.prototype, 'render', function (proceed) {
var chart = this.chart,
center = this.center || (this.yAxis && this.yAxis.center),
titleOption = this.options.title,
box;
proceed.call(this);
if (center && titleOption) {
box = {
x: chart.plotLeft + center[0] - 0.5 * center[2],
y: chart.plotTop + center[1] - 0.5 * center[2],
width: center[2],
height: center[2]
};
if (!this.title) {
this.title = this.chart.renderer.label(titleOption.text)
.css(titleOption.style)
.add()
.align(titleOption, null, box);
} else {
this.title.align(titleOption, null, box);
}
}
});
}(Highcharts));
e questo è come si configura il titolo (mettere questo nei vostri elementi della serie):
title: {
// align: 'left',
// x: 0
// style: { color: XXX, fontStyle: etc }
text: '<b>Pie 1</b><br>Subtext',
verticalAlign: 'top',
y: -40
},
fonte
2015-04-21 15:13:26
Sei riuscito a farlo funzionare? Sono bloccato sullo stesso identico problema e avendo problemi a ottenere Etichette per la torta individuale – Naveen
No, ho finito per dover creare grafici separati – tocallaghan