flofreelance
flofreelance

Reputation: 944

Google chart tooltip doesn't show digits after decimal

The tooltip doesn't show digits after decimal (Price) :

Tooltip problem

The options :

options = {
   seriesType: "line",
   series: {1: {type: "line"}},  
   colors:['#337ab7','black']
};

Upvotes: 0

Views: 328

Answers (1)

Tanvir Sourov
Tanvir Sourov

Reputation: 417

You can follow this code to solve the problem:

var formatter = new google.visualization.NumberFormat({ 
    pattern: '#%', 
    fractionDigits: 2
});

This will return a Decimal value with 2 Decimal Points. Thanks.

Upvotes: 1

Related Questions