2017-09-21 1 views
0

Je dois utiliser jQuery HighchartTable pour un projet et j'ai besoin de personnaliser les info-bulles, mais je n'ai trouvé aucune option dans la documentation ou ici. Des idées où regarder? Merci.jQuery.HighchartTable info-bulle personnalisée

J'ai essayé ceci:

$('table.highchart').highchartTable({ 
    tooltip: { 
     backgroundColor: 'red' 
    } 
}); 
+0

vérification http: // api .highcharts.com/highcharts/tooltip.backgroundColor –

+0

oui j'ai essayé aussi mais sans succès –

+0

ajouter un échantillon de violon où vous avez essayé –

Répondre

1

D'après ce que je lis ici: http://highcharttable.org/#doc-javascript, changer Highcharts options que vous devez le faire dans un événement beforeRender spécial. Ainsi, par exemple, si vous voulez changer backgroundColor de infobulle, vous pouvez utiliser ce code:

$('table.highchart') 
    .bind('highchartTable.beforeRender', function(event, highChartConfig) { 
    highChartConfig.tooltip = { 
     backgroundColor: 'red' 
    }; 
    }) 
    .highchartTable(); 

API Référence:
http://api.highcharts.com/highcharts/tooltip.backgroundColor

Exemple:
http://jsfiddle.net/5L0wsndh/