Null check correction

When the nativeCanvas was not defined we had an error on Chrome
I don't think that chart class should be parametrised. Actually need to think about to remove difference between data providers for various chart types