【问题标题】:Render Highcharts inside Webix在 Webix 中渲染 Highcharts
【发布时间】:2016-08-15 15:06:14
【问题描述】:

我正在像这样在 Rails 应用程序中渲染Highcharts 图表,它工作正常:

  #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);
  };

我将不胜感激有关如何使其发挥作用的任何想法。

【问题讨论】:

    标签: ruby-on-rails highcharts webix


    【解决方案1】:

    我只能在 webix-highcharts 的帮助下渲染 Highcharts

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2013-03-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多