highcharts-react-native
highcharts-react-native copied to clipboard
Not able to access the variable inside the formatter
I'm trying to create a formatting function outside of config, and calling in return for formatter. But it is not working.
let color = "red";
xAxis: { labels: { formatter: function (e) { return '' + e.value + ''; }, }