Null check correction

When the nativeCanvas was not defined we had an error on Chrome
The data structure is different as some charts have labels and other don't.
There are other differences so it is better to have different objects.