Working on legend

ESRI’s is kink of slow of complicated, should I do it in ExtJS?