Demonstrates how to make a custom PaletteProvider available for use with the Builder Api.
To use a custom type, you just need to register it using chartBuilder.registerType, with a name, and a function that will create an instance of your type. This example also shows how you can call methods within the builder api to get references to the objects being built, so you can update them later.
Custom types can have options which will be passed to the registered function.
Add a toJSON method to your custom type if you want it to be serialized
Not sure where to start? Contact us, we are happy to help!Contact Us