def __init__(self, height=None, width=None,
html_id=None, json_encoder_class=DjangoJSONEncoder):
self.height = height
self.width = width
self.json_encoder_class = json_encoder_class
self.html_id = html_id
if ((height is not None or width is not None) and
(self.responsive is None or self.responsive)):
raise ImproperlyConfigured(
'Using the height/width parameter will have no '
'effect if the chart is in responsive mode. '
'Disable responsive mode by setting chart.responsive '
'to False')
评论列表
文章目录