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

Add JSONfn as dependency and use it to parse chartjs options #17

Merged
merged 2 commits into from
Aug 21, 2021

Conversation

rosspdnpa
Copy link
Contributor

This enables functions to be passed as options to chartjs, e.g. for custom formatting of scale/axis tickmarks. The function must be passed in quotes:
{
"scales": {
"yAxes":{
"ticks": {
"callback": "function(value){return value+'%' }"
}
}
}
...
}

This enables functions to be passed as options, e.g. for custom formatting of scale/axis tickmarks:
{...

"scales": {
"yAxes":{
"ticks": {
"callback": "function(value){return value+'%' }"
}
}
}
...
}
@vercel
Copy link

vercel bot commented Aug 19, 2021

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/renovamen/vuepress-theme-gungnir/4vaKwZGvhUH5i4FQ3rVuNsMnTR3y
✅ Preview: https://vuepress-theme-gungnir-git-fork-pdnpa-chartplu-45c398-renovamen.vercel.app

@vercel vercel bot temporarily deployed to Preview August 19, 2021 12:00 Inactive
@vercel vercel bot temporarily deployed to Preview August 21, 2021 03:32 Inactive
@Renovamen
Copy link
Owner

Nice, thanks!

@Renovamen Renovamen merged commit 34640b5 into Renovamen:main Aug 21, 2021
@rosspdnpa rosspdnpa deleted the chartplugin-jsonfn branch August 24, 2021 10:28
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

Successfully merging this pull request may close these issues.

None yet

2 participants