Skip to content

Commit

Permalink
Report charts: add more styling for count based 1dim charts.
Browse files Browse the repository at this point in the history
  • Loading branch information
martinpovolny committed Sep 4, 2015
1 parent 473c296 commit 93ee3c4
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/report_formatter/chart_common.rb
Expand Up @@ -348,7 +348,7 @@ def build_reporting_chart_dim2
end
add_series(_("Other"), series)
end
counts # FIXME
counts
end

def data_column_name
Expand Down
2 changes: 1 addition & 1 deletion lib/report_formatter/jqplot.rb
Expand Up @@ -105,7 +105,7 @@ def build_util_ts_chart_column
def build_reporting_chart_other
mri.chart.update(Jqplot.basic_chart_fallback(mri.graph[:type]))
super
pie_highligher(false) if pie_type?
simple_numeric_styling
end

def build_reporting_chart_dim2
Expand Down
1 change: 1 addition & 0 deletions spec/models/miq_report/charting_spec.rb
Expand Up @@ -61,6 +61,7 @@
rpt = MiqReport.find_by_name(name)

rpt.generate_table(:userid => 'test')
rpt[:graph][:type] = 'StackedColumn'
rpt.to_chart(@report_theme, @show_title, @options)
chart = rpt.chart

Expand Down

0 comments on commit 93ee3c4

Please sign in to comment.