Sha256: 0bb8d1d6f132a94042ae4bb5bababdf48b3c320470541f4eccb7e746159b7c11

Contents?: true

Size: 310 Bytes

Versions: 1

Compression:

Stored size: 310 Bytes

Contents

class Bar < MyChart::Proto

  def concrete_type
    :bar
  end

  def concrete_options
    opt = {
       scales: {
         yAxes: [{
             ticks: {
                 beginAtZero:true
             }
         }]
       }
     }
    opt.merge!({legend: {display: false}}) unless has_z?
    opt
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
my_chart-0.1.3 lib/my_chart/charts/bar.rb