removed pie
parent
434999665c
commit
2742bf7656
|
@ -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}%"
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue