I'm rendering Highcharts chart in the Rails app like this and it works fine:
#container
#report-box
= render 'chart'
However, I want to show this chart inside Webix scrollview. Now my code looks like this and is not working (no errors, only blank space where the chart should be):
#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);
};
I would appreciate any ideas on how to make it work.