Nishan Aryal

Nishan Aryal

  • 676
  • 2.5k
  • 1.5m

Parse String to List

Aug 2 2017 5:03 AM
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.

Brought to you by:

Answers (1)