Answer the question
In order to leave comments, you need to log in
How to display highcharts correctly?
There is a schedule
@line = LazyHighCharts::HighChart.new('graph1') do |f|
f.title(text: "Динамика задолженности")
f.subtitle(text: 'Динамика задолжености')
f.xAxis(categories: @period)
f.series(:name=>'Поставщик 1', :data=> @line_com1)
f.series(:name=>'Поставщик 2', :data=> @line_com2 )
f.series(:name=>'Поставщик 3', :data=> @line_com3)
f.series(:name=>'Поставщик 4', :data=> @line_com4)
f.yAxis [
{title: {text: "Уровень задолженности", margin: 70} },
{title: {text: ""}, opposite: true},
]
f.legend(align: 'right', verticalAlign: 'top', y: 75, x: -50, layout: 'vertical')
f.chart({defaultSeriesType: "line"})
f.series(:name=>'Поставщик 2', :data=> @line_com2 )
f.series(:name=> @company, :data=> @data )
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question