function createDiagram(options) {
    return bootstrapDiagram(function() {
      return merge({
        canvas: {
          container: container,
          deferUpdate: false
        }
      }, options);
    }, {});
  }
Create a diagram with the given options