The fhir-react project defines a unique component which renders the interface based on FHIR resource type. There's no need for any configuration because the library uses the standard of defined by the resource type.
So, I decided to apply the same idea, but for charts. The basic idea is depicted below: