add angular controls using code from @ramnathv nvd3