Fix #5353: Username capitalization is wrong in reports.

This commit is contained in:
evazion
2022-11-24 14:28:18 -06:00
parent c60577593f
commit 8a2f59172b
2 changed files with 4 additions and 4 deletions

View File

@@ -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"

View File

@@ -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>