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

How can I use javascript function in echarts_from_json() ? #105

Closed
Blanket58 opened this issue Sep 11, 2019 · 1 comment
Closed

How can I use javascript function in echarts_from_json() ? #105

Blanket58 opened this issue Sep 11, 2019 · 1 comment
Labels
enhancement New feature or request

Comments

@Blanket58
Copy link

jsonlite will quote the function as a string, therefore echarts will not parse it, is there any way to solve this?

   "yAxis":[  
      {  
         "type":"value",
         "name":"",
         "axisLabel":{  

         },
         "show":false,
         "min":"function(value) {return value.min - 200;}"
      }
@JohnCoene
Copy link
Owner

I don't think this is going to work I'm afraid. Within other functions you can wrap JavaScript functions with htmlwidgets::JS as shown in these examples.

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

No branches or pull requests

2 participants