0
Reply

Parse String to List

Nishan Aryal

Nishan Aryal

Aug 2 2017 5:03 AM
186
Hi,
 
I have a column in database with data as string as following format. 
["Primary","Lower Secondary","Secondary", "HigherSecondary","Intermediate", ...... "Ph.D"]
 
 
 
 
Requirement 1 : List each value in <li> <li> as 
  • Primary
  • Lower Secondary 
  • Secondary
  • Higher Secondary
  • ........................
  • ........................
  • Ph.D 
  
 Requirement 2 :
Generate Chart showing based on occurance of Value (Vales in each row wil be same as in figure but the no of values may differ in each row)
 
 S.No Type No of Occurances
 1 Primary 23
 2 Lower Secondary 12
 3 Secondary 55
 
 
 
 Please help me to sort this out. Thanks in advance.