code: public Image getSnapshot(){
          String code= getBase64Image(nativeCanvas);
          if(code == null)
              return null;
          Image image = new Image(code);
          return image;
      }
docs: Creates snapshot of current state of chart as image
  @return Image object or null if Chart not rendered (or in progress)