mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-21 16:22:20 +02:00
N°3123 - Refactor Directories
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
{# @copyright Copyright (C) 2010-2020 Combodo SARL #}
|
||||
{# @license http://opensource.org/licenses/AGPL-3.0 #}
|
||||
|
||||
var chart = c3.generate({
|
||||
bindto: d3.select('#my_chart_{{ oUIBlock.sId }}'),
|
||||
data: {
|
||||
columns: {{ oUIBlock.sJSColumns|raw }},
|
||||
type: 'pie',
|
||||
names: {{ oUIBlock.sJSNames|raw }},
|
||||
onclick: function (d) {
|
||||
var aURLs = {{ oUIBlock.sJSURLs|raw }};
|
||||
window.location.href= aURLs[d.index];
|
||||
},
|
||||
order: null
|
||||
},
|
||||
legend: {
|
||||
show: true,
|
||||
position: 'right'
|
||||
},
|
||||
tooltip: {
|
||||
format: {
|
||||
value: function (value) { return value; }
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
if (typeof(charts) === "undefined")
|
||||
{
|
||||
charts = [];
|
||||
}
|
||||
charts.push(chart);
|
||||
Reference in New Issue
Block a user