# File lib/chart-candy/builder/line.rb, line 56 def add_x_axis(nature, original_data, options={}) options.reverse_merge! key: "time" data = original_data.map{ |d| d[options[:key]] } set_period_from_data data if not @from and nature == :date @chart[:axis][:x] = { nature: nature, label: t("axis.x.label"), min: data.min, max: data.max, max_ticks: data.length } end