1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-11 08:06:13 +01:00
phorge-phorge/webroot/rsrc/js/application/maniphest/behavior-line-chart.js

20 lines
380 B
JavaScript
Raw Normal View History

/**
* @provides javelin-behavior-line-chart
* @requires javelin-behavior
* javelin-dom
* javelin-chart
*/
JX.behavior('line-chart', function(config) {
var chart_node = JX.$(config.chartNodeID);
var chart = new JX.Chart(chart_node);
function onresponse(r) {
chart.setData(r);
}
new JX.Request(config.dataURI, onresponse)
.send();
});