luci-app-statistics: cpufreq: enhance additional data

* Use the new data series sorting and coloring options to
  display the frequencies in order and with matching coloring in
  different cores.

* Fix the y-axis text and legend in the frequency usage graph

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
(cherry picked from commit 05cad423ce)
This commit is contained in:
Hannu Nyman 2019-08-01 18:15:59 +03:00
parent 73212d42a5
commit a4dc8f0d8d

View file

@ -42,12 +42,13 @@ function rrdargs( graph, plugin, plugin_instance, dtype )
local percentage = {
title = "%H: Frequency distribution - core %pi",
alt_autoscale = true,
vlabel = "Frequency (Hz)",
vlabel = "Percent",
number_format = "%5.2lf%%",
ordercolor = true,
data = {
types = { "percent" },
options = {
percent = { title = "Frequency %di" },
percent = { title = "%di Hz", negweight = true },
}
}
}