Release notes - BALKAN OrgChartJS

BALKAN OrgChartJS FREE

Org Chart JavaScript library for developers

Release notes

Version 9.00.01
  • Introducing TreeGrid layout
let chart = new OrgChart('#tree', {
  tags: {	
    treeGridGroupTag: {
      template: 'treeGrid',
        subTreeConfig: {
          template: 'treeGrid',
          layout: OrgChart.layout.treeGridFixedHeight		
	}
      }
    }
 });
  • Now you can use a function for template field and use the "node", "data" and "template" parameters to set field attributes conditionally
OrgChart.templates.treeGrid.field_1 = function(node, data, template){
  var fill = 'red';
  if (data.val > 0){
    fill = 'green';
  }
  return `<text fill="${fill}" x="${node.x + node.w / 2}" y="47" style="font-size:12px;">{val}</text>`;
};
  • Now the default value for mouseScrool option is OrgChart.action.ctrlZoom, it was OrgChart.action.zoom. So the zooming functionality could behave differently if mouseScrool option is not set explicitly

There are no breaking changes

Error