Self hosted FLOSS fitness/workout, nutrition and weight tracker
Update BMI chart
Roland Geiderad5d8591e92a
diff --git a/wger/manager/static/images/bmi.svg b/wger/manager/static/images/bmi.svgdeleted file mode 100644index 474b57d6a..000000000--- a/wger/manager/static/images/bmi.svg+++ /dev/null@@ -1,520 +0,0 @@-<?xml version="1.0" encoding="UTF-8" standalone="no"?>-<!-- Created with Inkscape (http://www.inkscape.org/) -->--<svg- xmlns:dc="http://purl.org/dc/elements/1.1/"- xmlns:cc="http://creativecommons.org/ns#"- xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"- xmlns:svg="http://www.w3.org/2000/svg"- xmlns="http://www.w3.org/2000/svg"- xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"- xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"- width="479"- height="300"- id="svg4136"- version="1.1"- inkscape:version="0.48.4 r9939"- sodipodi:docname="bmi.svg"- inkscape:export-filename="D:\Jochens Kram\Merkur Akademie\Biologie\Bilder\Ernährung\BMI-Grafik.png"- inkscape:export-xdpi="300"- inkscape:export-ydpi="300"- viewBox="0 0 479 300">- <defs- id="defs4138">- <inkscape:perspective- sodipodi:type="inkscape:persp3d"- inkscape:vp_x="0 : 526.18109 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_z="744.09448 : 526.18109 : 1"- inkscape:persp3d-origin="372.04724 : 350.78739 : 1"- id="perspective4144" />- <inkscape:perspective- id="perspective4076"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4076-8"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4396"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4396-3"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4432"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4457"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4482"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4482-6"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4482-3"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective4482-2"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5056"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5056-7"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5056-3"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5100"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5100-0"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5100-06"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5152"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5152-9"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5152-7"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5235"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective5402"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- <inkscape:perspective- id="perspective3056"- inkscape:persp3d-origin="0.5 : 0.33333333 : 1"- inkscape:vp_z="1 : 0.5 : 1"- inkscape:vp_y="0 : 1000 : 0"- inkscape:vp_x="0 : 0.5 : 1"- sodipodi:type="inkscape:persp3d" />- </defs>- <sodipodi:namedview- id="base"- pagecolor="#ffffff"- bordercolor="#666666"- borderopacity="1.0"- inkscape:pageopacity="0.0"- inkscape:pageshadow="2"- inkscape:zoom="1.979899"- inkscape:cx="443.9458"- inkscape:cy="114.38614"- inkscape:document-units="px"- inkscape:current-layer="layer1"- showgrid="false"- inkscape:window-width="1131"- inkscape:window-height="695"- inkscape:window-x="229"- inkscape:window-y="54"- inkscape:window-maximized="0" />- <metadata- id="metadata4141">- <rdf:RDF>- <cc:Work- rdf:about="">- <dc:format>image/svg+xml</dc:format>- <dc:type- rdf:resource="http://purl.org/dc/dcmitype/StillImage" />- <dc:title />- </cc:Work>- </rdf:RDF>- </metadata>- <g- inkscape:label="Ebene 1"- inkscape:groupmode="layer"- id="layer1"- transform="translate(112.10824,-194.90909)">- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-53.11137"- y="479.40689"- id="text2846-17"><tspan- sodipodi:role="line"- id="tspan2848-4"- x="-53.11137"- y="479.40689"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">1,60</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="47.355091"- y="479.40689"- id="text2846-1-0"><tspan- sodipodi:role="line"- id="tspan2848-7-9"- x="47.355091"- y="479.40689"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">1,70</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="147.35506"- y="479.40689"- id="text2846-0-4"><tspan- sodipodi:role="line"- id="tspan2848-9-8"- x="147.35506"- y="479.40689"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">1,80</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="247.35512"- y="479.40689"- id="text2846-8-8"><tspan- sodipodi:role="line"- id="tspan2848-2-2"- x="247.35512"- y="479.40689"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">1,90</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="347.35507"- y="479.40689"- id="text2846-5-4"><tspan- sodipodi:role="line"- id="tspan2848-1-5"- x="347.35507"- y="479.40689"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">2,00</tspan></text>- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -2.23997,461.20239 0,-265.34105"- id="path3680-7-5" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 47.75526,461.20239 0,-265.34101"- id="path3680-1-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 97.7505,461.20239 0,-265.34108"- id="path3680-2-7" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 147.74573,461.20239 0,-265.34102"- id="path3680-6-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 197.74096,461.20239 0,-265.34101"- id="path3680-23-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 247.7362,461.20239 0,-265.341"- id="path3680-21-5" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 297.73143,461.20239 0,-265.34099"- id="path3680-8-2" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 347.72666,461.20239 0,-265.34105"- id="path3680-61-7" />- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="453.14713"- id="text2846-89-6"><tspan- sodipodi:role="line"- id="tspan2848-27-14"- x="-77.787704"- y="453.14713"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">40</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="423.14178"- id="text2846-89-9-2"><tspan- sodipodi:role="line"- id="tspan2848-27-5-3"- x="-77.787704"- y="423.14178"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">50</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="393.14166"- id="text2846-89-3-2"><tspan- sodipodi:role="line"- id="tspan2848-27-1-2"- x="-77.787704"- y="393.14166"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">60</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="363.14166"- id="text2846-89-33-1"><tspan- sodipodi:role="line"- id="tspan2848-27-4-6"- x="-77.787704"- y="363.14166"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">70</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="333.14166"- id="text2846-89-1-8"><tspan- sodipodi:role="line"- id="tspan2848-27-3-5"- x="-77.787704"- y="333.14166"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">80</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-77.787704"- y="303.14163"- id="text2846-89-7-7"><tspan- sodipodi:role="line"- id="tspan2848-27-42-6"- x="-77.787704"- y="303.14163"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">90</tspan></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-83.510361"- y="272.96835"- id="text2846-89-79-1"><tspan- sodipodi:role="line"- id="tspan2848-27-31-8"- x="-83.510361"- y="272.96835"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">100</tspan><tspan- sodipodi:role="line"- x="-83.510361"- y="297.96835"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed"- id="tspan3966-9" /></text>- <text- xml:space="preserve"- style="font-size:15px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-83.510361"- y="242.9323"- id="text2846-89-8-2"><tspan- sodipodi:role="line"- id="tspan2848-27-6-7"- x="-83.510361"- y="242.9323"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">110</tspan></text>- <text- xml:space="preserve"- style="font-size:40px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-83.510361"- y="212.9323"- id="text2846-89-0-9"><tspan- sodipodi:role="line"- id="tspan2848-27-2-5"- x="-83.510361"- y="212.9323"- style="font-size:15px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">120</tspan></text>- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,415.83209 423.96104,0"- id="path3894-43" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,385.84185 423.96104,0"- id="path3894-8-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,355.85161 423.96104,0"- id="path3894-0-2" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,325.86137 423.96104,0"- id="path3894-4-3" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,295.87113 423.96104,0"- id="path3894-6-34" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,265.88089 423.96104,0"- id="path3894-6-0-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,235.89065 423.96104,0"- id="path3894-6-6-1" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,205.90041 423.96104,0"- id="path3894-6-3-3" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.25567627;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -66.21531,445.82239 423.96104,0"- id="path3894-09-8" />- <path- style="fill:#808080;stroke:#000000;stroke-width:1.26277387;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m -52.2352,461.20239 0,-265.34102"- id="path3680-74" />- <path- style="opacity:0.5;fill:#000080;stroke:none"- d="m -62.25427,455.86139 0,-11.349 c 0,0 140.11484,-22.0961 210,-34.171 70.12195,-12.1159 210,-38.40502 210,-38.40502 l 0,83.92502 -420,0 z"- id="path4038-2"- sodipodi:nodetypes="ccsccc" />- <path- style="opacity:0.5;fill:#0000ff;stroke:none"- d="m -62.25427,444.51239 0,-7.584 c 0,0 140.09986,-23.6406 210,-36.307 70.10471,-12.70348 210,-39.80502 210,-39.80502 l 0,11.12 c 0,0 -139.87805,26.28912 -210,38.40502 -69.88516,12.0749 -210,34.171 -210,34.171 z"- id="path4044-7"- sodipodi:nodetypes="ccsccsc" />- <path- style="opacity:0.5;fill:#00ffff;stroke:none"- d="m 357.74573,341.63537 0,19.181 c 0,0 -139.89529,27.10154 -210,39.80502 -69.90014,12.6664 -210,36.307 -210,36.307 l 0,-11.377 c 0,0 140.15202,-25.5562 210,-39.51002 70.16152,-14.01644 210,-44.406 210,-44.406 z"- id="path4046-7"- sodipodi:nodetypes="ccsccsc" />- <path- style="opacity:0.5;fill:#00ff00;stroke:none"- d="m -61.89713,426.93279 -0.35714,-50.67942 c 0,0 140.26882,-34.56893 210,-53.392 70.28611,-18.97286 210,-60.008 210,-60.008 l 0,78.782 c 0,0 -139.83848,30.38956 -210,44.406 -69.84798,13.95382 -210,39.51002 -210,39.51002"- id="path4048-9"- sodipodi:nodetypes="ccsccsc" />- <path- style="opacity:0.5;fill:#ffff00;stroke:none"- d="m -62.25427,376.25337 0,-37.921 c 0,0 140.3755,-41.51995 210,-64.071 70.40027,-22.80231 210,-72.009 210,-72.009 l 0,60.601 c 0,0 -139.71389,41.03514 -210,60.008 -69.73118,18.82307 -210,53.392 -210,53.392 z"- id="path4050-3"- sodipodi:nodetypes="ccsccsc" />- <path- style="opacity:0.5;fill:#ff7f2a;stroke:none"- d="m -61.85072,338.28013 -0.40355,-37.86976 c 0,0 106.92006,-36.70055 160,-56.112 42.60459,-15.58059 127.181,-48.437 127.181,-48.437 l 132.819,0 0,6.391 c 0,0 -139.60326,49.1958 -210,72.009 -69.49379,22.52059 -209.59645,64.01876 -209.59645,64.01876 z"- id="path4054-1"- sodipodi:nodetypes="ccscccsc" />- <path- style="opacity:0.5;fill:#ff2a2a;stroke:none"- d="m -62.25427,300.41037 0,-37.921 c 0,0 73.45853,-28.63882 110,-43.428 18.71282,-7.57351 55.942,-23.2 55.942,-23.2 l 121.239,0 c 0,0 -84.57641,32.85641 -127.181,48.437 -53.07994,19.41145 -160,56.112 -160,56.112 z"- id="path4058-9"- sodipodi:nodetypes="ccsccsc" />- <path- style="opacity:0.5;fill:#800000;stroke:none"- d="m 103.68773,195.86137 c 0,0 -37.22918,15.62649 -55.942,23.2 -36.54147,14.78918 -110,43.428 -110,43.428 l 0,-66.628 165.942,0 z"- id="path4064-8"- sodipodi:nodetypes="csccc" />- <path- style="fill:none;stroke:#000000;stroke-width:1.25;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none"- d="m 357.74573,455.86139 -420,0 0,-260.00002 420,0 0,260.00002"- id="path4066-6" />- <text- xml:space="preserve"- style="font-size:12px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="148.45383"- y="493.32706"- id="text5390"><tspan- sodipodi:role="line"- id="tspan5392"- x="148.45383"- y="493.32706"- style="font-size:12px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">m</tspan></text>- <text- xml:space="preserve"- style="font-size:12px;font-style:normal;font-weight:normal;text-align:center;text-anchor:middle;fill:#000000;fill-opacity:1;stroke:none;font-family:Maiandra GD;-inkscape-font-specification:Maiandra GD"- x="-325.2962"- y="-102.99105"- id="text5390-9"- transform="matrix(0,-1,1,0,0,0)"><tspan- sodipodi:role="line"- id="tspan5392-6"- x="-325.2962"- y="-102.99105"- style="font-size:12px;font-family:DejaVu Sans Condensed;-inkscape-font-specification:DejaVu Sans Condensed">kg</tspan></text>- </g>-</svg>diff --git a/wger/nutrition/templates/bmi/form.html b/wger/nutrition/templates/bmi/form.htmlindex 23e0ace98..eac563999 100644--- a/wger/nutrition/templates/bmi/form.html+++ b/wger/nutrition/templates/bmi/form.html@@ -73,19 +73,27 @@ $(document).ready(function () {.append("g").attr("transform", "translate(" + margin.left + "," + margin.top + ")");+ // Clip path, drawings outside are removed+ svg.append("defs").append("clipPath")+ .attr("id", "clip")+ .append("rect")+ .attr("width", width)+ .attr("height", height);++d3.json("/nutrition/calculator/bmi/chart-data", function(data) {var layers = stack(nest.entries(data));- x.domain(d3.extent(data, function(d) { return d.height; }));- //y.domain([0, d3.max(data, function(d) { return d.y0 + d.y; })]);- y.domain([0, d3.max(data, function(d) { return d.weight; })]);- //y.domain([0, d3.max(data, function(d) { return d.y0 + d.y; })]);+ // Manually set the domains+ x.domain([150, 200]);+ y.domain([30, 180]);svg.selectAll(".layer").data(layers).enter().append("path").attr("class", "layer")+ .attr("clip-path", "url(#clip)").attr("d", function(d) { return area(d.values); }).style("fill", function(d, i) { return z(i); }).style("opacity", 0.6);@@ -178,18 +186,20 @@ $(document).ready(function () {<div id="bmi-result-container" style="display:hidden;"><h3>{% trans 'Results' %}</h3>- <p>{% trans 'You BMI is: ' %} <strong><span id="bmi-result-value">{{user.userprofile.calculate_bmi|floatformat:2}}</span></strong></p>+ <p>{% trans 'Your BMI is: ' %} <strong><span id="bmi-result-value">{{user.userprofile.calculate_bmi|floatformat:2}}</span></strong></p></div>+<!--<img width="479"height="300"title="{% trans 'BMI' %}"alt="{% trans 'BMI' %}"src="{% static 'images/bmi.svg' %}"style="margin-top:3em;"></img>+--><div id="bmi-chart"></div>diff --git a/wger/nutrition/views/bmi.py b/wger/nutrition/views/bmi.pyindex 6a3933a22..84304446b 100644--- a/wger/nutrition/views/bmi.py+++ b/wger/nutrition/views/bmi.py@@ -91,23 +91,36 @@ def calculate(request):def chart_data(request):'''Returns the data to render the BMI chart++ The individual values taken from+ * http://apps.who.int/bmi/index.jsp?introPage=intro_3.html+ * https://de.wikipedia.org/wiki/Body-Mass-Index'''data = json.dumps([- {'key': 'Group1', 'height': 160, 'weight': 40},- {'key': 'Group1', 'height': 200, 'weight': 65},- {'key': 'Group2', 'height': 160, 'weight': 44},- {'key': 'Group2', 'height': 200, 'weight': 68},- {'key': 'Group3', 'height': 160, 'weight': 48},- {'key': 'Group3', 'height': 200, 'weight': 72},- {'key': 'Group4', 'height': 160, 'weight': 63},- {'key': 'Group4', 'height': 200, 'weight': 100},- {'key': 'Group5', 'height': 160, 'weight': 76},- {'key': 'Group5', 'height': 200, 'weight': 120},- {'key': 'Group6', 'height': 160, 'weight': 88},- {'key': 'Group6', 'height': 187, 'weight': 120},- {'key': 'Group7', 'height': 160, 'weight': 102},- {'key': 'Group7', 'height': 175, 'weight': 120}+ {'key': 'severe_thinness', 'height': 150, 'weight': 22.5},+ {'key': 'severe_thinness', 'height': 200, 'weight': 64},++ {'key': 'moderate_thinness', 'height': 150, 'weight': 36},+ {'key': 'moderate_thinness', 'height': 200, 'weight': 68},++ {'key': 'mild_thinness', 'height': 150, 'weight': 36.25},+ {'key': 'mild_thinness', 'height': 200, 'weight': 68.5},++ {'key': 'normal_range', 'height': 150, 'weight': 41.625},+ {'key': 'normal_range', 'height': 200, 'weight': 99.6},++ {'key': 'pre_obese', 'height': 150, 'weight': 56.25},+ {'key': 'pre_obese', 'height': 200, 'weight': 119.6},++ {'key': 'obese_class_1', 'height': 150, 'weight': 67.5},+ {'key': 'obese_class_1', 'height': 200, 'weight': 139.6},++ {'key': 'obese_class_2', 'height': 150, 'weight': 78.75},+ {'key': 'obese_class_2', 'height': 200, 'weight': 159},++ {'key': 'obese_class_3', 'height': 150, 'weight': 90},+ {'key': 'obese_class_3', 'height': 200, 'weight': 180}])# Return the results to the client