Skip to content

Not able to access the variable inside the formatter #141

Description

@vidyaflorency

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 + '';
},
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions