Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add custom CSS styles for Metrics Graphics

Roland Geider81d4152bd232
diff --git a/wger/core/static/css/metricsgraphics-custom.css b/wger/core/static/css/metricsgraphics-custom.css
new file mode 100644
index 000000000..a2bf66740
--- /dev/null
+++ b/wger/core/static/css/metricsgraphics-custom.css
@@ -0,0 +1,51 @@
+/*
+ * Custom Metrics Graphics styles
+ */
+
+.mg-active-datapoint {
+ fill: black;
+ font-size: 0.9rem;
+ font-weight: 400;
+ opacity: 0.8;
+}
+
+.mg-area1-color {
+ fill: #729fcf;
+ /*fill: #3465a4;*/
+}
+
+.mg-area2-color {
+ fill: #8ae234;
+ /*fill: #73d216;*/
+}
+
+.mg-area3-color {
+ fill: #ef2929;
+ /*fill: #cc0000;*/
+}
+
+.mg-area4-color {
+ fill: #fcaf3e;
+ /*fill: #f57900;*/
+}
+
+.mg-area5-color {
+ fill: #888a85;
+ /*fill: #555753;*/
+}
+
+path.mg-main-area {
+ /*opacity: 1;*/
+ opacity: 0.9;
+ /*opacity: 0.5;*/
+ stroke: none;
+}
+
+.mg-line1-color{
+ stroke: black;
+}
+
+
+.mg-line-rollover-circle{
+ fill: black;
+}
\ No newline at end of file
diff --git a/wger/weight/templates/overview.html b/wger/weight/templates/overview.html
index c109d66ba..2c9bd053d 100644
--- a/wger/weight/templates/overview.html
+++ b/wger/weight/templates/overview.html
@@ -11,6 +11,7 @@
-->
{% block header %}
<link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics.css' %}">
+<link rel="stylesheet" type="text/css" href="{% static 'css/metricsgraphics-custom.css' %}">
<script src="{% static 'js/metricsgraphics.js' %}"></script>
@@ -40,9 +41,10 @@ $(document).ready(function () {
//x_rug: true,
yax_count: 10,
+ xax_count: 10,
max_y: max_y + 1,
min_y: min_y - 1,
- show_secondary_x_label: false,
+ show_secondary_x_label: true,
small_text: false
});
});