Class: Line
Instance Attribute Summary
#id, #name
Instance Method Summary
collapse
#datasets, #default_html, #diff_color_on_x, #diff_color_on_z, #has_z?, #height, #iife, #initialize, #json, #labels, no_z_axis, #no_z_axis?, #options, same_color_on_x, #styled_datasets, #title, #type, #width
Constructor Details
This class inherits a constructor from MyChart::Proto
Instance Method Details
#concrete_options ⇒ Object
11
12
13
14
15
|
# File 'lib/my_chart/charts/line.rb', line 11
def concrete_options
opt = {}
opt.merge!({legend: {display: false}}) unless has_z?
opt
end
|
#concrete_style ⇒ Object
7
8
9
|
# File 'lib/my_chart/charts/line.rb', line 7
def concrete_style
{fill:false, lineTension: 0.1}
end
|
#concrete_type ⇒ Object
3
4
5
|
# File 'lib/my_chart/charts/line.rb', line 3
def concrete_type
:line
end
|