-
Notifications
You must be signed in to change notification settings - Fork 14.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e755854
commit 3635191
Showing
7 changed files
with
78 additions
and
1 deletion.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,63 @@ | ||
{% extends "panoramix/base.html" %} | ||
|
||
{% block head_css %} | ||
{{super()}} | ||
<link rel="stylesheet" href="{{ url_for('static', filename="jquery.gridster.min.css") }}"> | ||
<style> | ||
.gridster li { | ||
list-style-type: none; | ||
border: 1px solid gray; | ||
background: #EEEEEE; | ||
overflow: auto; | ||
box-shadow: 2px 2px 2px #AAA; | ||
} | ||
img.loading { | ||
width: 20px; | ||
margin: 5px; | ||
} | ||
</style> | ||
{% endblock %} | ||
|
||
{% block content_fluid %} | ||
<div class="gridster content_fluid"> | ||
<ul> | ||
<li id="loadme3" data-row="1" data-col="1" data-sizex="1" data-sizey="1"> | ||
</li> | ||
<li data-row="2" data-col="1" data-sizex="1" data-sizey="1"></li> | ||
<li data-row="3" data-col="1" data-sizex="1" data-sizey="1"></li> | ||
|
||
<li data-row="1" data-col="2" data-sizex="2" data-sizey="1"></li> | ||
<li id="loadme1" data-row="2" data-col="2" data-sizex="2" data-sizey="2"></li> | ||
|
||
<li data-row="1" data-col="4" data-sizex="1" data-sizey="1"></li> | ||
<li data-row="2" data-col="4" data-sizex="2" data-sizey="1"></li> | ||
<li data-row="3" data-col="4" data-sizex="1" data-sizey="1"></li> | ||
|
||
<li data-row="1" data-col="5" data-sizex="1" data-sizey="1"></li> | ||
<li data-row="3" data-col="5" data-sizex="1" data-sizey="1"></li> | ||
|
||
<li data-row="1" data-col="6" data-sizex="1" data-sizey="1"></li> | ||
<li data-row="2" data-col="6" data-sizex="1" data-sizey="2"></li> | ||
<li id="loadme2" data-row="4" data-col="1" data-sizex="2" data-sizey="2"> | ||
</li> | ||
</ul> | ||
</div> | ||
{% endblock %} | ||
|
||
{% block tail %} | ||
{{ super() }} | ||
<script src="{{ url_for("static", filename="jquery.gridster.with-extras.min.js") }}"></script> | ||
<script> | ||
$(".gridster li").html('<img src="/static/loading.gif" class="loading">'); | ||
$(".gridster ul").gridster({ | ||
widget_margins: [5, 5], | ||
widget_base_dimensions: [200, 200], | ||
resize: {enabled: true} | ||
}); | ||
$("#loadme1").load("/panoramix/table/2/?flt_col_0=gender&datasource_id=2&flt_op_0=in&viz_type=table&row_limit=50&since=50%20years%20ago&until=now&metrics=total&granularity=all&datasource_name=baby_names&slice_name=Top%2050%20table&where=&groupby=name&flt_eq_0=&datasource_type=table&standalone=true"); | ||
//$("#loadme2").load("/panoramix/table/2/?flt_col_0=gender&datasource_id=2&flt_op_0=in&viz_type=pie&since=50%20years%20ago&until=now&metrics=total&limit=10&granularity=one%20day&datasource_name=baby_names&slice_name=Pie&where=&groupby=name&flt_eq_0=&datasource_type=table&standalone=true"); | ||
//$("loadme3").html('<iframe src="http://localhost:8088/panoramix/table/2/?flt_col_0=gender&datasource_id=2&flt_op_0=in&viz_type=pie&since=50%20years%20ago&until=now&metrics=total&limit=10&granularity=one%20day&datasource_name=baby_names&slice_name=Pie&where=&groupby=name&flt_eq_0=&datasource_type=table&standalone=true"></iframe>'); | ||
</script> | ||
|
||
{% endblock %} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters