-
Notifications
You must be signed in to change notification settings - Fork 87
Open
Description
FAI-PEP/ailab/benchmark/templatetags/nvd3_tags.py
Lines 44 to 54 in 6f74b68
| if 'x_is_date' not in kw_extra: | |
| kw_extra['x_is_date'] = False | |
| if 'x_axis_format' not in kw_extra: | |
| kw_extra['x_axis_format'] = "%d %b %Y" | |
| if 'color_category' not in kw_extra: | |
| kw_extra['color_category'] = "category20" | |
| if 'tag_script_js' not in kw_extra: | |
| kw_extra['tag_script_js'] = True | |
| if 'chart_attr' not in kw_extra: | |
| kw_extra['chart_attr'] = {} | |
| # set the container name |
The above syntax can be changed to the following.
kw_extra['x_is_date'] = kw_extra.get('x_is_date', False)
kw_extra['x_axis_format'] = kw_extra.get('x_axis_format', "%d %b %Y")
kw_extra['color_category'] = kw_extra.get('color_category', "category20")
kw_extra['tag_script_js'] = kw_extra.get('tag_script_js', True)
kw_extra['chart_attr'] = kw_extra.get('chart_attr', {})Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels