Fix #5353: Username capitalization is wrong in reports.
This commit is contained in:
@@ -58,7 +58,7 @@ class TimeSeriesComponent < ApplicationComponent
|
||||
containLabel: true
|
||||
},
|
||||
legend: {
|
||||
data: y_axis.map(&:capitalize),
|
||||
data: y_axis,
|
||||
type: "scroll",
|
||||
left: 0,
|
||||
padding: [8, 200, 0, 15],
|
||||
@@ -87,7 +87,7 @@ class TimeSeriesComponent < ApplicationComponent
|
||||
yAxis: [type: "value"] * y_axis.size,
|
||||
series: y_axis.map do |name|
|
||||
{
|
||||
name: name.capitalize,
|
||||
name: name,
|
||||
type: "line",
|
||||
areaStyle: {},
|
||||
stack: "all",
|
||||
@@ -109,7 +109,7 @@ class TimeSeriesComponent < ApplicationComponent
|
||||
yAxis: [type: "category", inverse: true] * y_axis.size,
|
||||
series: y_axis.map do |name|
|
||||
{
|
||||
name: name.capitalize,
|
||||
name: name,
|
||||
type: "bar",
|
||||
emphasis: {
|
||||
focus: "series"
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
<table class="striped autofit" width="100%">
|
||||
<thead>
|
||||
<% dataframe.types.keys.each do |column| %>
|
||||
<%= tag.th(column.to_s.titleize, class: ("col-expand" if column == dataframe.types.keys.last)) %>
|
||||
<%= tag.th(column == "date" ? "Date" : column.to_s, class: ("col-expand" if column == dataframe.types.keys.last)) %>
|
||||
<% end %>
|
||||
</thead>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user