In svg graph, set fill-opacity to 0% on parent<g/> instead of each child instance of <rect/>. This reduces generated file size 12.6KB - 11.9KB
This commit is contained in:
@@ -55,6 +55,7 @@
|
||||
</g>
|
||||
{% endfor %}
|
||||
|
||||
<g style="fill-opacity: 0%">
|
||||
{% for pos, message in plot_labels %}
|
||||
{% set x = (pos * vb_width) - (stroke_width/2) + margin %}
|
||||
{% set y = 0 %}
|
||||
@@ -66,9 +67,9 @@
|
||||
width="{{ width | int }}"
|
||||
height="{{ height | int }}"
|
||||
class="plot_point"
|
||||
data-message="{{ message }}"
|
||||
fill-opacity="0%"></rect>
|
||||
data-message="{{ message }}"></rect>
|
||||
{% endfor %}
|
||||
</g>
|
||||
|
||||
{% for pos in relative_positions %}
|
||||
{% endfor %}
|
||||
|
||||
Reference in New Issue
Block a user