Voilà mon objectif était d'arrondir les labels de mon chart à 1 chiffre après la virgule. j'ai finis par y arriver en modifiant la callback beforeDrawDataPointLabel mais il y a une chose que je ne m'explique pas :
Cette methode marche :
function beforeDrawDataPointLabel(dph, label, icsc)
{
label.getCaption( ).setValue((dph.getOrthogonalValue() / 1).toFixed(1));
}
Alors que celle-ci ne marche pas :
function beforeDrawDataPointLabel(dph, label, icsc)
{
label.getCaption( ).setValue(dph.getOrthogonalValue().toFixed(1));
}
Quelqu'un a une idée de ce qui cloche ?
Partager