mirror of
https://github.com/prometheus/prometheus.git
synced 2025-03-05 20:59:13 -08:00
Add option for the number of ticks in PromConsole.Graph (#9223)
Signed-off-by: Dorian Jaminais-Grellier <dorian@jaminais.fr>
This commit is contained in:
parent
9dfdc3eb36
commit
05dba96ebf
|
@ -320,6 +320,8 @@ PromConsole.graphDefaults = {
|
|||
yTitle: "", // The title of the y axis.
|
||||
// Number formatter for y axis.
|
||||
yAxisFormatter: PromConsole.NumberFormatter.humanize,
|
||||
// Number of ticks (horizontal lines) for the y axis
|
||||
yAxisTicks: null,
|
||||
// Number formatter for y values hover detail.
|
||||
yHoverFormatter: PromConsole.NumberFormatter.humanizeExact,
|
||||
// Color scheme to be used by the plots. Can be either a list of hex color
|
||||
|
@ -529,7 +531,8 @@ PromConsole.Graph.prototype._render = function(data) {
|
|||
});
|
||||
var yAxis = new Rickshaw.Graph.Axis.Y({
|
||||
graph: graph,
|
||||
tickFormat: this.params.yAxisFormatter
|
||||
tickFormat: this.params.yAxisFormatter,
|
||||
ticks: this.params.yAxisTicks
|
||||
});
|
||||
var xAxis = new Rickshaw.Graph.Axis.Time({
|
||||
graph: graph,
|
||||
|
|
Loading…
Reference in a new issue