Commit dfecbb75 authored by Anze Vavpetic's avatar Anze Vavpetic
Browse files

...and the files.

parent 4ff86dc6
......@@ -167,4 +167,3 @@ td{
.sortable li { margin: 0 2px 2px 2px; padding: 0.4em; padding-left: 1.5em; line-height: 1.2em; cursor: move;}
.sortable .ui-state-highlight { height: 1.2em; }
.sortable li span { position: absolute; margin-left: -1.3em; }
......@@ -29,6 +29,7 @@
<script src="{{ STATIC_URL }}js/jquery.treeview.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}js/jquery.treeview.edit.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}js/jquery.jstree.js" type="text/javascript"></script>
<script src="{{ STATIC_URL }}js/jquery.dataTables.min.js" type="text/javascript"></script>
<!-- <script type="text/javascript" src="{{ STATIC_URL }}js/graphics.js"></script>-->
<script type="text/javascript" src="{{ STATIC_URL }}js/fileuploader.js"></script>
<script src="{{ STATIC_URL }}js/jquery.contextmenu.js" type="text/javascript"></script>
......
......@@ -45,9 +45,14 @@ $(function () {
text: 'Changing weight for attribute: ' + target_att,
x: -20
},
xAxis: {
title: {
text: 'Weight of {{target_att}}'
}
},
yAxis: {
title: {
text: 'score'
text: 'Score'
},
plotLines: [{
value: 0,
......
<div id="widgetvisualization-{{widget.pk}}" width="700" height="400" rel="{{widget.pk}}" class="widgetvisualizationdialog" title="{{widget.name}} results">
<div id="widgetvisualization-{{widget.pk}}" width="700" height="500" rel="{{widget.pk}}" class="widgetvisualizationdialog" title="{{widget.name}} results">
<style type="text/css">
/*
Data table fine-tuning.
*/
table.display {
width: 100%;
}
tr.odd {
background-color: rgb(221, 255, 221);
}
tr.even {
background-color: rgb(238, 255, 238);
}
.dataTable .ui-icon {
display: inline;
float: right;
}
.dataTables_wrapper .ui-button {
padding: 2px 6px 2px 6px;
margin-right: 0px;
}
.dataTables_filter {
//width: 50%;
float: right;
text-align: right;
}
.dataTables_filter label, .dataTables_filter input {
display: inline;
white-space: nowrap;
width: auto;
}
.dataTables_length {
//width: 40%;
float: left;
text-align: left;
}
div.dataTables_length {
float: left;
}
div.dataTables_filter {
float: right;
}
div.dataTables_info {
padding: 9px 6px 10px 6px;
float: left;
}
div.dataTables_paginate {
float: right;
}
div.dataTables_length,
div.dataTables_filter,
div.dataTables_paginate {
padding: 6px 6px 0px 6px;
}
html[xmlns] .dataTables_wrapper {
display: block;
}
* html .dataTables_wrapper {
height: 1%;
}
</style>
<center>
<table class="datasetTable">
<table cellpadding="0" cellspacing="0" border="0" class="display" id="datasetTable{{widget.pk}}">
<!-- header -->
{% for att in output_dict.attrs %}
<th>{{att}}</th>
{% endfor %}
{% if output_dict.class_var %}
<th>{{output_dict.class_var}}</th>
{% endif %}
{% for att in output_dict.metas %}
<th>{{att}}</th>
{% endfor %}
<!-- att type -->
<tr class="tablerow{{widget.pk}}">
<thead>
<tr>
{% for att in output_dict.attrs %}
<td></td>
<th>{{att}}</th>
{% endfor %}
{% if output_dict.class_var %}
<td class='tablecellcenter'>class</td>
{% endif %}
{% if output_dict.class_var %}
<th>{{output_dict.class_var}} [class]</th>
{% endif %}
{% for att in output_dict.metas %}
<td class='tablecellcenter'>meta</td>
<th>{{att}} [meta]</th>
{% endfor %}
</tr>
</tr>
</thead>
<tbody>
<!-- instances -->
{% for inst in output_dict.data %}
<tr class="tablerow{{widget.pk}}">
<tr>
{% for v in inst %}
<td>{{v}}</td>
{% endfor %}
</tr>
{% endfor %}
</tbody>
</table>
</center>
<script type="text/javascript">
$(function () {
$(document).ready(function() {
$('#datasetTable{{widget.pk}}').dataTable( {
"bSortCellsTop" : true,
"bJQueryUI": true,
"sPaginationType": "full_numbers"
});
} );
});
</script>
</div>
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment