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": { "dates": {
"date_histogram": { "date_histogram": {
"field": "mtime", "field": "mtime",
"interval": "1M", "interval": "1y",
"min_doc_count": 5, "min_doc_count": 5,
"format": "yyyy" "format": "yyyy"
} }
@ -320,7 +320,6 @@ class ElasticSearchEngine(SearchEngine):
}, index=self.index_name) }, index=self.index_name)
es_stats = self.es.indices.stats(self.index_name) es_stats = self.es.indices.stats(self.index_name)
print(size_and_date_histogram)
stats = dict() stats = dict()
stats["es_index_size"] = es_stats["indices"][self.index_name]["total"]["store"]["size_in_bytes"] 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: [{ datasets: [{
data: dataSet, data: dataSet,
borderWidth: 1, borderWidth: 1,
strokeColor: "#FFFFFF", borderColor: "#E94700",
backgroundColor: "#FFFFFF" backgroundColor: "rgba(233, 71, 0, 0.6)"
}], }],
labels: labels, labels: labels,
title: "test" title: "test"
@ -81,8 +81,8 @@ function drawDateHistogram(rData) {
datasets: [{ datasets: [{
data: dataSet, data: dataSet,
borderWidth: 1, borderWidth: 1,
strokeColor: "#FFFFFF", borderColor: "#E94700",
backgroundColor: "#FFFFFF" backgroundColor: "rgba(233, 71, 0, 0.6)"
}], }],
labels: labels, labels: labels,