ramnathv / htmlwidgets

HTML Widgets for R
http://htmlwidgets.org
Other
792 stars 205 forks source link

明白了 Echarts.js和adminLTE.js都会使用$来作为一个调用的接口, 产生了冲突, 在JS层面产生了冲突, 所以不能同时使用 #428

Open englianhu opened 2 years ago

englianhu commented 2 years ago

明白了 Echarts.js和adminLTE.js都会使用$来作为一个调用的接口, 产生了冲突, 在JS层面产生了冲突, 所以不能同时使用 除了把它用htmlwidgets重写掉之外, 我想不出有什么解决的方法...

Originally posted by @Lchiffon in https://github.com/Lchiffon/REmap/issues/29#issuecomment-349586221

(1) prompt message~

prefer_conflicts('xxx$xxx', 'Echarts.js')
prefer_conflicts('xxx$xxx', 'adminLTE.js')

or (2) add the ifelse function in htmlwidgets package~

if(xxx == 'echarts.js') { 
   xxxxx
} else if(xxx == 'adminLTE.js') {
   xxxxx
}

https://user-images.githubusercontent.com/7227582/161288371-000ca42c-818d-4e00-9f77-e3186a0f1459.mp4

somebody take a look?

https://github.com/scibrokes/owner/issues/2#issuecomment-1085962755

englianhu commented 2 years ago

Check your canvas in the page. I suspect it's just really huge and you need to scroll down a little to see it.

Citation: shiny htmlwidget renders blank

You can try using some jQuery directly in order to respond to the user clicking on the button. The onRender would be: ...

Citation: Shiny actionButton() output in onRender() function of htmlWidgets

原因总结

  1. echarts路径错误
  2. 没有相关的json数据
  3. 没有引入jQuery

    原因总结

    ...

Citation : 运行echarts的官方示例显示为空白的解决方法

Reference

englianhu commented 2 years ago