interactive_chart op twee plaatsen
This commit is contained in:
@@ -11,7 +11,6 @@
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title>jQuery UI Slider - Range slider</title>
|
||||
<link rel="stylesheet" href="//code.jquery.com/ui/1.13.2/themes/base/jquery-ui.css">
|
||||
<link rel="stylesheet" href="/resources/demos/style.css">
|
||||
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
|
||||
<script src="https://code.jquery.com/ui/1.13.2/jquery-ui.js"></script>
|
||||
|
||||
@@ -30,11 +29,14 @@
|
||||
dataType: 'json',
|
||||
|
||||
success: function(data) {
|
||||
console.log(data);
|
||||
$("#id_script").replaceWith('<div id="id_script">'+data.script+'</d'+'iv>');
|
||||
$("#id_chart").replaceWith('<div id="id_chart">'+data.div+'</d'+'iv>');
|
||||
$("#ds").replaceWith('<div id="ds">'+data.ds+'</d'+'iv>');
|
||||
$("#dd").replaceWith('<div id="dd">'+data.dd+'</d'+'iv>');
|
||||
$("#id_script").replaceWith('<div id="id_script">'+data.script+'</d'+'iv>');
|
||||
$("#id_chart").replaceWith('<div id="id_chart">'+data.div+'</d'+'iv>');
|
||||
|
||||
|
||||
$("#dd").empty();
|
||||
$("#dd").html(data.dd);
|
||||
$("#ds").empty();
|
||||
$('#ds').html(data.ds)
|
||||
}
|
||||
});
|
||||
}
|
||||
@@ -169,11 +171,10 @@ $( function() {
|
||||
{{ the_div|safe }}
|
||||
</div>
|
||||
</li>
|
||||
<li class="grid_2">
|
||||
<div id="dd" class="flexplot">
|
||||
<script src="https://d3js.org/d3.v6.js"></script>
|
||||
{{ dd|safe }}
|
||||
|
||||
<script src="https://d3js.org/d3.v6.js"></script>
|
||||
<li class="grid_2" id="interactive">
|
||||
<div id="dd" class="flexplot">
|
||||
{{ dd|safe }}
|
||||
</div>
|
||||
<div id="ds">
|
||||
{{ ds |safe }}
|
||||
|
||||
Reference in New Issue
Block a user