Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Label inside dataset #3

Open
wizz- opened this issue Feb 7, 2018 · 1 comment
Open

Label inside dataset #3

wizz- opened this issue Feb 7, 2018 · 1 comment

Comments

@wizz-
Copy link

wizz- commented Feb 7, 2018

The plug-in text option has no option for the label within the dataset. It is possible to do this by script, but using labels inside the dataset is very common and could have an option of its own.

@wizz-
Copy link
Author

wizz- commented Feb 7, 2018

I'm sorry. I can't do script for text:

outlabels: {
text: function(){
return "test";
},
}

Because i get this error:

TypeError: text.replace is not a function
text = text.replace(/%l/gi, label);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant