How to find type of the chart from excel with ChartType Final Integer Constant

Hi Team,

how to find type of the chart from excel,
I can get ChartType Final Integer Constant, from below code.

int chartType = pChart.getType();

How do get the type of Chart in Name like 'pivot, column…".

@HAREEM_HCL_COM,

Well, you have to write your own code to map constant values to its relevant chart type names by yourselves. For example, you may try to use if…else control flow of structs or switch case for it to evaluate chart types, see the sample lines of code
e.g
Sample code:

.......
 if (pchart.getType() == ChartType.LINE) {
             //....
            //Your code goes here
            //..........

                }

Hope, this helps a bit.