1
Highcharts我渲染Highcharts图中这样的Rails应用程序,它工作正常:渲染内Webix
#container
#report-box
= render 'chart'
不过,我想说明里面Webix scrollview此图表。现在,我的代码看起来像这样,不工作(没有错误,只有空白的空间,图表应该是):
#section3{:style => "display:none;"}
#container{:height => "800px", :width => "1100px"}
#report-box
= render 'chart'
webix.ui({view:"layout",
container:"scroll",
rows:[
{view: "scrollview", id: "sections", height: 600,
scroll: "y",
body:{
{ id: "section_3", template: "html->section3", height: 300}
}
]
});
function scroll(id){
$$("sections").showView("section_"+id);
};
我将不胜感激就如何使它工作的任何想法。