Sha256: 28fc3f2548d377b1ee4fef307b095238ed181753a2e74191c146db58d837e254
Contents?: true
Size: 603 Bytes
Versions: 12
Compression:
Stored size: 603 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' module Quby::Questionnaires::Entities module Charting describe BarChart do it_behaves_like Chart it 'can set plotlines' do chart = BarChart.new(:tot, plotlines: [{value: 40, color: :red, width: 1, zIndex: 3}]) expect(chart.plotlines).to eq([{value: 40, color: :red, width: 1, zIndex: 3}]) end it 'can set plotbands' do chart = BarChart.new(:tot, plotbands: [{from: 40, to: 60, color: :red}]) expect(chart.plotbands).to eq([{from: 40, to: 60, color: :red}]) end end end end
Version data entries
12 entries across 12 versions & 1 rubygems