Skip to content

@plamen-peshev plamen-peshev released this Jun 4, 2021

  • new event "label"

chart.on('label', function (sender, args) {
//args.node;
//args.cnode;
//args.p;
//args.linkTemplate;
//args.action;
//args.value = replacement;
//args.element = t[f];
//args.name = val;
});

Assets 2

@plamen-peshev plamen-peshev released this May 26, 2021

  • Fixed an issue with keyboard navigation
Assets 2

@plamen-peshev plamen-peshev released this May 24, 2021

  • new option - enableKeyNavigation
  • new events:
       chart.on('key-down', function(sender, args){
            //args.node,
            //args.data,
            //args.event
         }

        chart.on('screen-reader-text', function(sender, args){
            //args.id	    
	    //args.text
        });
Assets 2

@plamen-peshev plamen-peshev released this May 11, 2021

Assets 2

@plamen-peshev plamen-peshev released this May 7, 2021

  • Now the drop event is fired if dropped in chart canvas
Assets 2

@plamen-peshev plamen-peshev released this Apr 21, 2021

Assets 2

@plamen-peshev plamen-peshev released this Apr 19, 2021

  • Added new event
chart.on('field', function(sender, args){    
    //args.element - svg element of the filed, can be changed in the event
    //args.value - value of the filed, can be changed in the event
    //args.name - name of the field
    //args.node - the node
    //args.data - node data json object

   //return false; to hide the filed in specified node
});

  • Field functions will be depreciate in future releases, the code bellow will not work:
    var chart = new OrgChart(document.getElementById("tree"), {
        nodeBinding: {
            field_0: function (sender, node) {
                var data = sender.get(node.id);
                var name = data["name"];
                var link = data["link"];
                return '<a target="_blank" href="' + link + '">' + name + '</a>'
            }
        },
        ...
    });
Assets 2

@plamen-peshev plamen-peshev released this Apr 18, 2021

  • Fixed - Set as root and search issue
Assets 2

@plamen-peshev plamen-peshev released this Apr 18, 2021

  • Fixed an issue with empty chart, the user was not able to add first chart
  • Fixed an issue with duplicated slink labels
Assets 2

@plamen-peshev plamen-peshev released this Dec 4, 2020

  • Fixed an issue with layouts
Assets 2