Browse Source

Reduce ci stroke width when reactive

pull/307/head
Florian Mounier 9 years ago
parent
commit
a2a3135bf8
  1. 4
      pygal/css/style.css
  2. 4
      pygal/svg.py

4
pygal/css/style.css

@ -104,6 +104,10 @@
stroke-width: 4; stroke-width: 4;
} }
{{ id }}.ci .reactive.active {
stroke-width: 1.5;
}
{{ id }}.series text { {{ id }}.series text {
fill: {{ style.foreground_strong }}; fill: {{ style.foreground_strong }};
} }

4
pygal/svg.py

@ -16,7 +16,6 @@
# #
# You should have received a copy of the GNU Lesser General Public License # You should have received a copy of the GNU Lesser General Public License
# along with pygal. If not, see <http://www.gnu.org/licenses/>. # along with pygal. If not, see <http://www.gnu.org/licenses/>.
"""Svg helper""" """Svg helper"""
from __future__ import division from __future__ import division
@ -309,13 +308,14 @@ class Svg(object):
bottom = (x, low) bottom = (x, low)
ci = self.node(node, class_="ci") ci = self.node(node, class_="ci")
self.node( self.node(
ci, 'path', d="M%s L%s M%s L%s M%s L%s L%s M%s L%s" % tuple( ci, 'path', d="M%s L%s M%s L%s M%s L%s L%s M%s L%s" % tuple(
map(coord_format, ( map(coord_format, (
top, shr(top), top, shl(top), top, top, shr(top), top, shl(top), top,
bottom, shr(bottom), bottom, shl(bottom) bottom, shr(bottom), bottom, shl(bottom)
)) ))
), class_='nofill' ), class_='nofill reactive'
) )
def pre_render(self): def pre_render(self):

Loading…
Cancel
Save