HighCharts编辑器插件示例不工作
因此,我有用于Highcharts的jquery simple rest插件(与示例文档中使用的相同)。我已经链接了js文件,在我的浏览器中没有收到任何错误。文档中还提到需要使用highed.useHighCharts编辑器插件示例不工作,highcharts,highcharts-editor,Highcharts,Highcharts Editor,因此,我有用于Highcharts的jquery simple rest插件(与示例文档中使用的相同)。我已经链接了js文件,在我的浏览器中没有收到任何错误。文档中还提到需要使用highed.use //The installer highed.plugins.editor.install("jquery-simple-rest",{ //Contains information about the plugin - optional meta:{ version:"1.0.0",
//The installer
highed.plugins.editor.install("jquery-simple-rest",{
//Contains information about the plugin - optional
meta:{
version:"1.0.0",
author:"Highsoft",
homepage:"https://github.com/highcharts/highcharts-editor/plugins/jquery-simple-rest.js"
},
//Add additional external dependencies here
dependencies:[
"https://code.jquery.com/jquery-3.1.0.min.js"
],
//This is the prototype options which the plugin accepts
options:{
url:{
required:!0,
type:"string"}
},
//Called when the chart changes
chartchange:function(e,t)
{jQuery.ajax({
url:t.url,
data:e.json,
dataType:"json",
type:"post"
,success:function(){
highed.snackBar("CHART SAVED")
},
error:function(e,t){
highed.snackBar("unable to save chart: "+t)
}
})
}
});
highed.plugins.editor.use('jquery-simple-rest', {options:{
url:{
required:!0,
type:"string"}
},
}
);
我不能让这个插件出现在我的编辑器中,也不知道我做错了什么
链接到示例:编辑器仍处于beta版本,因此我想最好的方法是直接联系编辑的作者-您可以在github上联系他们编辑器仍处于beta版本,因此我想最好的方法是直接联系编辑的作者-您可以在github上联系他们