Hi Gareth,
We have created a sample in which we have rendered the connector in the symbol palette. Please refer to the code example and sample below.
Code example:
function createPaletteConnectors(option: ej.datavisualization.SymbolPalette.Palette) {
. . . . .
. . . . .
option.items = [
//create connector
createConnector1({ name: "Link1", segments: [{ type: ej.datavisualization.Diagram.Segments.Orthogonal }] }),
createConnector1({ name: "Link2", segments: [{ type: ej.datavisualization.Diagram.Segments.Straight }] })
];
return option;
}
function createConnector1(option: ej.datavisualization.Diagram.Connector) {
option.sourcePoint = createPoint({ x: 0, y: 0 });
option.targetPoint = createPoint({ x: 40, y: 40 });
option.targetDecorator = { shape: "arrow", borderColor: "#A9A9A9", fillColor: "#A9A9A9" },
option.lineWidth = 2;
option.lineColor = "#A9A9A9";
return option;
}
Regards,
Shyam G