You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that the linechart never builds the extras when serializing to html string. I ran into this once and forgot that I updated the template html, so deploying to a new dev server broke it again and it is pretty deep to see what is actually happening. The python chart class has the method to add (no update) the extras, but it looks like they never actually get written to the html due to it not being in the template.
original html:
{# This template adds attributes unique
to lineChart #}
My html upated with the work-around:
{# This is a dummy template, we can use that template to add attributes unique
to linechart #}
{% extends "content.html" %}
{% block body %}
{{ super() }}
{% endblock body %}
Is the linechart not supposed to support extras at all? I'm not sure what the other features that are outlined in the template do, but I have no issues after updating my template to match - I was wondering if {{ super() }} simply needs to be included inside of the body block to let the body parent get initialized?
Thanks!
The text was updated successfully, but these errors were encountered:
quetzaluz
added a commit
to quetzaluz/python-nvd3
that referenced
this issue
Mar 14, 2018
I noticed that the linechart never builds the extras when serializing to html string. I ran into this once and forgot that I updated the template html, so deploying to a new dev server broke it again and it is pretty deep to see what is actually happening. The python chart class has the method to add (no update) the extras, but it looks like they never actually get written to the html due to it not being in the template.
original html:
{# This template adds attributes unique
to lineChart #}
{% endblock body %}
My html upated with the work-around:
{# This is a dummy template, we can use that template to add attributes unique
to linechart #}
Is the linechart not supposed to support extras at all? I'm not sure what the other features that are outlined in the template do, but I have no issues after updating my template to match - I was wondering if {{ super() }} simply needs to be included inside of the body block to let the body parent get initialized?
Thanks!
The text was updated successfully, but these errors were encountered: