/syncfusion-angular:syncfusion-angular-diagramfrom Syncfusion Angular UI Components
Build and configure Syncfusion EJ2 Angular Diagram for flowcharts, org charts, process diagrams, and data-visualization. Trigger when users ask to create nodes/connectors, apply layouts, swimlane, use BPMN/UML shapes, ER diagrams, or add interactivity like drag-drop, zoom/pan, snapping, editing, and symbol palettes.
Ships in Syncfusion Angular UI Components. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Use this skill when you need to:
API Verification Required: Always verify API class names, properties, and signatures by reading reference files (references/*.md) BEFORE generating code examples. Do not assume or infer class names.
⚠️ Before writing ANY code, review the Common Mistakes section directly below to avoid known invalid APIs and properties.
The Syncfusion Angular Diagram component provides a visual canvas for creating and editing diagrams:
Start with Getting Started, then jump to the specific feature you need:
📄 Read: references/getting-started.md
📄 Read: references/nodes.md
📄 Read: references/connectors.md
📄 Read: references/labels-and-annotations.md
📄 Read: references/ports.md
📄 Read: references/shapes-and-styles.md
📄 Read: references/entity-relationship-diagrams.md
📄 Read: references/bpmn-diagrams.md
📄 Read: references/uml-diagrams.md
📄 Read: references/layouts.md
📄 Read: references/swimlanes.md
📄 Read: references/groups-and-containers.md
📄 Read: references/symbol-palette.md
📄 Read: references/data-binding.md
📄 Read: references/interaction-and-tools.md
📄 Read: references/serialization-and-export.md
📄 Read: references/diagram-settings.md
Here's a minimal diagram to get started:
import { Component, Inject } from '@angular/core';
import { DiagramComponent, DiagramModule } from '@syncfusion/ej2-angular-diagrams';
@Component({
selector: 'app-diagram',
template: `
<ejs-diagram #diagram
width="100%"
height="600px"
[nodes]="nodes"
[connectors]="connectors">
</ejs-diagram>
`,
standalone: true,
imports: [DiagramModule]
})
export class DiagramComponent {
nodes = [
{
id: 'start',
width: 80,
height: 80,
offsetX: 150,
offsetY: 150,
shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{ content: 'START' }]
},
{
id: 'process',
width: 100,
height: 80,
offsetX: 350,
offsetY: 150,
shape: { type: 'Flow', shape: 'Process' },
annotations: [{ content: 'Process' }]
},
{
id: 'end',
width: 80,
height: 80,
offsetX: 550,
offsetY: 150,
shape: { type: 'Flow', shape: 'Terminator' },
annotations: [{ content: 'END' }]
}
];
connectors = [
{ id: 'connector1', sourceID: 'start', targetID: 'process' },
{ id: 'connector2', sourceID: 'process', targetID: 'end' }
];
}
For detailed setup, read Getting Started.
Syncfusion Diagram uses Inject directive for feature registration:
import { Component, Inject } from '@angular/core';
import { BpmnDiagrams, Swimlane, SymbolPalette } from '@syncfusion/ej2-angular-diagrams';
Diagram.Inject(BpmnDiagrams, SymbolPalette)
Always inject the features you use. This keeps bundle size small and makes dependencies explicit.
getNodeDefaults(node: NodeModel): NodeModel {
return {
shape: { type: 'Flow', shape: 'Process' },
style: { fill: '#90EE90', stroke: '#228B22' }
};
}
dataSourceSettings: {
id: 'id',
parentId: 'parentId',
dataSource: yourDataArray
}
diagram.selectionChange((args) => {
console.log('Selected:', args.newItems);
});
diagram.exportDiagram({format: 'PNG', fileName: 'diagram'});
const diagramData = diagram.saveDiagram();
localStorage.setItem('diagram', JSON.stringify(diagramData));
Mistake:
// ❌ WRONG - Shape type should be 'Flow', not 'FlowShape'
shape: { type: 'FlowShape', shape: 'Process' }
Correct:
// ✅ CORRECT - Use 'Flow' for flowchart shapes
shape: { type: 'Flow', shape: 'Process' }
// ✅ CORRECT - Use 'Bpmn' for BPMN shapes
shape: { type: 'Bpmn', shape: 'Task' }
// ✅ CORRECT - Use 'Basic' for basic geometries
shape: { type: 'Basic', shape: 'Rectangle' }
Reference: references/shapes-and-styles.md
Wrong:
// ❌ Swimlane is NOT an injectable module
Diagram.Inject(BpmnDiagrams, Swimlane);
Correct:
// ✅ Only inject verified documented modules
Diagram.Inject(BpmnDiagrams);
📄 Verify injectable modules in:
references/bpmn-diagrams.md,references/swimlanes.md
whiteSpace Does Not Exist in Annotation StyleWrong:
// ❌ whiteSpace is NOT a valid TextStyleModel property
annotations: [{
content: 'Multi\nLine',
style: { fontSize: 11, whiteSpace: 'pre-wrap' } // ❌
}]
Correct:
// ✅ Use \n in content — valid style props:
// fontSize, color, bold, italic, fontFamily,
// opacity, strokeColor, strokeWidth, fill
annotations: [{
content: 'Multi\nLine',
style: { fontSize: 11, color: '#000', bold: true }
}]
📄 Verify annotation style properties in:
references/labels-and-annotations.md
updateNode() Does Not Exist on DiagramComponentWrong:
// ❌ updateNode() does not exist in EJ2 Diagram API
this.diagram.updateNode('nodeId', { style: { fill: '#ff0000' } });
Correct:
// ✅ getObject() → mutate property → dataBind()
const node = this.diagram.getObject('nodeId') as NodeModel;
if (node) {
node.style!.fill = '#ff0000';
this.diagram.dataBind(); // ← always required after mutation
}
📄 Verify runtime APIs in:
references/nodes.md
Mistake:
// ❌ WRONG - Missing proper data source setup
nodes = this.employeeData; // Direct array assignment
Correct:
// ✅ CORRECT - Use dataSourceSettings with proper mapping
dataSourceSettings: {
id: 'EmployeeID',
parentId: 'ReportingManagerID',
dataSource: this.employeeData
}
// Then configure setNodeTemplate for rendering:
setNodeTemplate(obj: NodeModel): void {
// obj contains the data row
obj.width = 100;
obj.height = 60;
obj.annotations = [{
content: obj.data.EmployeeName
}];
}
Reference: references/data-binding.md
Mistake:
// ❌ WRONG - Using traditional decorator without standalone
@Component({
selector: 'app-diagram',
templateUrl: './component.html',
imports: [DiagramModule]
// Missing: standalone: true
})
Correct:
// ✅ CORRECT - Mark as standalone component
@Component({
selector: 'app-diagram',
templateUrl: './component.html',
standalone: true, // ← Add this
imports: [CommonModule, DiagramModule],
})
Reference: references/getting-started.md
connectorChanges instead of recreating connectorsreferences/bpmn-diagrams.md (opens in a new tab)references/connectors.md (opens in a new tab)references/data-binding.md (opens in a new tab)references/diagram-settings.md (opens in a new tab)references/entity-relationship-diagrams.md (opens in a new tab)references/getting-started.md (opens in a new tab)references/groups-and-containers.md (opens in a new tab)references/interaction-and-tools.md (opens in a new tab)references/labels-and-annotations.md (opens in a new tab)references/layouts.md (opens in a new tab)references/nodes.md (opens in a new tab)references/ports.md (opens in a new tab)references/serialization-and-export.md (opens in a new tab)references/shapes-and-styles.md (opens in a new tab)references/swimlanes.md (opens in a new tab)references/symbol-palette.md (opens in a new tab)references/uml-diagrams.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub syncfusion/boldcreate-plugins --plugin syncfusion-angular65 skills in this plugin
/syncfusion-angular-3d-chartImplement interactive 3D charts in Angular applications using Syncfusion. Guide covers setup, chart types (bar, column, stacked variants), customization, data binding, axis configuration, legends, tooltips, selection, data labels, appearance styling, dimensions, print/export, and accessibility. Use this skill whenever a user needs to create, configure, or customize 3D chart visualizations./syncfusion-angular-accordionGuide for implementing Angular Accordion components for collapsible content panels, expandable sections, FAQs, multi-step wizards, step-by-step forms, navigation menus, or tabbed navigation. Use this skill when users mention expanding/collapsing content, accordion layouts, step-by-step workflows, or hierarchical content organization. This skill covers initialization, expand modes, data binding, dynamic loading, animations, nested accordions, and real-world patterns./syncfusion-angular-accumulation-chartImplement and customize Syncfusion Angular Accumulation Charts (Pie, Doughnut, Pyramid, Funnel) with data binding, labels, legends, and tooltips. Use this when creating accumulation charts, configuring chart types, customizing data visualization, adding annotations, or handling interactive chart events in Angular applications.Other plugins' skills for the same job