Dates and sizes graphs styling

This commit is contained in:
Simon 2018-06-19 19:44:04 -04:00
parent 8236b04c2e
commit 76ed03a82e
2 changed files with 5 additions and 6 deletions

View File

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

View File

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