removed pie

master
Benjamin Hodges 2019-08-28 13:13:53 +01:00
parent 434999665c
commit 2742bf7656
1 changed files with 0 additions and 43 deletions

View File

@ -31,7 +31,6 @@ var dataTableRowsP = null
var dataTable = []
var dataAggregated = {}
var graphAggregated = []
var pie
var graph_height = 0
var graph_width = 0
@ -139,47 +138,5 @@ function showGraphs(checkSize = false){
if(graph_height > graph_width){
graph_height = graph_width
}
if (pie != null){
pie.destroy()
}
if(graphAggregated == null || graphAggregated.length == 0){
return
}
jQuery("#dcl_pie").html("<h3>" + siteAggregationOperatorGraph + "(" + graphShowColumn + ") by " + aggregateByName + "</h3>")
pie = new d3pie("dcl_pie", { // http://d3pie.org/website/examples/tooltips_placeholders.html
size: {
canvasHeight: graph_height,
canvasWidth: graph_width
},
header: {
//title: {
//fontSize: 14
//}
},
effects: {
load: {
effect: "none"
}
},
data: {
content: graphAggregated
},
callbacks: {
//onMouseoverSegment: function(info) {
//console.log("mouseover:", info);
//},
//onMouseoutSegment: function(info) {
//console.log("mouseout:", info);
//}
},
tooltips: {
enabled: true,
type: "placeholder",
string: "{label}, {value}, {percentage}%"
}
});
}