Britain's James Dyson has canceled his ambitious project to build an electric car, the centerpiece of a 2.5 billion pound ($3.1 billion) investment in technology, saying he could not see a way to make it commercially viable.