[Answer]-Flot not rendering in Django

1👍

The JS is executing before the target div has been rendered. You can move the div before the inline JS or wrap the JS call in a document.ready:

<script type="text/javascript">
$(document).ready(function(){ 
    alert('Im running!');
    $.plot($("#flot-test"), [ [[0, 0], [1, 1]] ], { yaxis: {max: 1 } });
});
👤Mark

Leave a comment