highcharts / highcharts/highcharts-react-native

Formatter function dependencies not included

Open
#79 9 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
105
Forks
79
PR merge metrics
No merged PRs in 30d

Description

When function passed to formatter calls other functions (i.e. lodash or any other library) or functions defined outside of the scope of formatter function, it throws `Can't find variable` exception. This seems to be due to outer functions or libraries don't make it to the WebView where charts are rendered. How can we bypass it?
Example of not working formatter funtion:
```javascript
const sum = (a, b) => a + b;

function formatter() {
return sum(this.value, 1);
}
```
will throw `Can't find variable sum`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.