Add missing round to svg sparkline graph
This commit is contained in:
@@ -57,11 +57,15 @@
|
||||
{% endfor %}
|
||||
|
||||
{% for pos, message in plot_labels %}
|
||||
<rect
|
||||
x="{{ (pos * vb_width) - (stroke_width/2) + margin }}"
|
||||
y="{{ 0 }}"
|
||||
width="{{ stroke_width }}"
|
||||
height="{{ vb_height + margin }}"
|
||||
{% set x = (pos * vb_width) - (stroke_width/2) + margin %}
|
||||
{% set y = 0 %}
|
||||
{% set width = stroke_width %}
|
||||
{% set height = vb_height + margin %}
|
||||
<rect
|
||||
x="{{ x | round(precision) }}"
|
||||
y="{{ y | round(precision) }}"
|
||||
width="{{ width | round(precision) }}"
|
||||
height="{{ height | round(precision) }}"
|
||||
class="plot_point"
|
||||
data-message="{{ message }}"
|
||||
fill-opacity="0%"></rect>
|
||||
|
||||
Reference in New Issue
Block a user