Sha256: 26d8eee2ddbda5e02a5e71a42c277e9063d3d4046bb13d4dc79fb2178830f1a2

Contents?: true

Size: 427 Bytes

Versions: 9

Compression:

Stored size: 427 Bytes

Contents

# frozen_string_literal: true

require 'quby/questionnaires/entities/charting/bar_chart'
require_relative 'chart_builder'

module Quby
  module Questionnaires
    module DSL
      class BarChartBuilder < ChartBuilder
        set_chart_class(Entities::Charting::BarChart)

        def plotline(value, color)
          @chart.plotlines << {value: value, color: color, width: 1, zIndex: 3}
        end
      end
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
quby-4.0.4 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-4.0.3 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-4.0.2 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-4.0.1 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-4.0.0 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-3.2.2 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-3.2.1 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-3.2.0 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb
quby-3.2.0.pre.pre1 lib/quby/questionnaires/dsl/charting/bar_chart_builder.rb