web.protoUI sample for custom chart

Does anybody have a sample for a custom chart created using webix.protoUI ? I have used webix.extend to create a custom barchart but cant use it as it uses some internal calls that are named separately in the minified code.

So looking for help on the recommended way to do it with webix.protoUI but cant find any samples.

Hello!

You can create any custom component, either from the scratch, or on the base of any already existing Webix component. It is exactly the way all the Webix components are created themselves:

webix.protoUI({
   name:"custom",
   $init:function(config){
   //method called during initialization
   },
   defaults:{
   //set of default properties
   },
   render:function(){
   //paint the component
   }
})

And then use it the same way like any component:

webix.ui({ view:"custom", ...});

Information about how to create a custom component you can find here