Commit 37ec6966 authored by Sanjay Yadav's avatar Sanjay Yadav

ENH: Added stroke to the heatgrid cells.

parent 4368796d
Pipeline #33237 passed with stage
in 1 minute and 10 seconds
......@@ -915,7 +915,7 @@ def heatgrid(shape, spec, data):
if styles.get('gradient'):
_min, _max = data[spec['value']].min(), data[spec['value']].max()
# Compiling style elements if required
for key in ['gradient', 'color', 'fill', 'font-size', 'font-family']:
for key in ['gradient', 'color', 'fill', 'font-size', 'font-family', 'stroke']:
if isinstance(styles.get(key), (dict,)) and 'function' in styles[key]:
styles[key] = compile_function(styles, key, data, handler)
......@@ -952,6 +952,7 @@ def heatgrid(shape, spec, data):
style['fill'] = spec.get('na-color')
style['color'] = _color.contrast(style['fill'])
style['stroke'] = style.get('stroke', style['fill'])
rect_css(_rect, **style)
# Adding text to cells if required.
if spec.get('text'):
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment