Search code examples
reactjsanychart

Removing Credits from AnyChart-React


Removing credits from standard anycharts is well documented here:

var credits = chart.credits();
credits.enabled(false);

What's the easiest way of going about this with the AnyChart-React library, I can see nothing documented?

Thanks.


Solution

  • If you don't use an instance property on AnyChart component - all properties (except of reserved) will be called on chart as if it would be a JS API (see component usage). So if you want to turn credits off, set credits property to false: <AnyChart credits={false} /> (equivalent of chart.credits(false))