Percentage on Y-axis of Column chart

Percentage on Y-axis of Column chart

  

Hi

I'm using a column chart to represent Passed Test Case status, if I want to represent the Y-axis in Percentage format like ((PassedTestCase/TotalNumberOfTestCases)*100. How can I get percentage on Y-axis? Please help me out.

Hi Manjusha,

You can add your precentage format in tooltip (advancedFormat.HighchartsJSON) :

Example:

SyntaxEditor Code Snippet

tooltip: 
{
    backgroundColor: '#ffffff',
    borderColor: '#cccccc',
    borderRadius: 3,
    borderWidth: 1,
    formatter: function() {

        return '<span style=color:#2379da;><b>Source</b></span>: ' + this.x + ' <br><span style=color:#2379da;><b>Total</b></span>: ' + this.y + ' Timesheets';
    }

}

Cheers,

Rocky