mirror of
https://github.com/simon987/od-database.git
synced 2025-04-19 02:16:47 +00:00
Dates and sizes graphs styling
This commit is contained in:
parent
8236b04c2e
commit
76ed03a82e
@ -310,7 +310,7 @@ class ElasticSearchEngine(SearchEngine):
|
||||
"dates": {
|
||||
"date_histogram": {
|
||||
"field": "mtime",
|
||||
"interval": "1M",
|
||||
"interval": "1y",
|
||||
"min_doc_count": 5,
|
||||
"format": "yyyy"
|
||||
}
|
||||
@ -320,7 +320,6 @@ class ElasticSearchEngine(SearchEngine):
|
||||
}, index=self.index_name)
|
||||
|
||||
es_stats = self.es.indices.stats(self.index_name)
|
||||
print(size_and_date_histogram)
|
||||
|
||||
stats = dict()
|
||||
stats["es_index_size"] = es_stats["indices"][self.index_name]["total"]["store"]["size_in_bytes"]
|
||||
|
@ -19,8 +19,8 @@ function drawSizeHistogram(rData) {
|
||||
datasets: [{
|
||||
data: dataSet,
|
||||
borderWidth: 1,
|
||||
strokeColor: "#FFFFFF",
|
||||
backgroundColor: "#FFFFFF"
|
||||
borderColor: "#E94700",
|
||||
backgroundColor: "rgba(233, 71, 0, 0.6)"
|
||||
}],
|
||||
labels: labels,
|
||||
title: "test"
|
||||
@ -81,8 +81,8 @@ function drawDateHistogram(rData) {
|
||||
datasets: [{
|
||||
data: dataSet,
|
||||
borderWidth: 1,
|
||||
strokeColor: "#FFFFFF",
|
||||
backgroundColor: "#FFFFFF"
|
||||
borderColor: "#E94700",
|
||||
backgroundColor: "rgba(233, 71, 0, 0.6)"
|
||||
}],
|
||||
labels: labels,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user