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