// Defines JSON to create node with image
var nodes = [{
name: "imageNode",
width: 100,
height: 60,
offsetX: 40,
offsetY: 40,
type: ej.datavisualization.Diagram.Shapes.Image,
source: "sample/employee.png"
borderWidth:3,
borderColor:"white",
}];
//Initializes Diagram
$("#diagram").ejDiagram({
width: "100%",
height: "100%",
//Initializes nodes collection
nodes: nodes,
});
var palettes = [
{
name: "Basic Shapes", expanded: true,
items: [
{name: "image", width: 40, height: 40, offsetX: 20, offsetY: 20, type: ej.datavisualization.Diagram.Shapes.Image, source: "scripts/image30.png" },
]
}
];
|
I cannot adequately express how deeply indebted I am to you.
Great job!!!!!
Thank you very much!
It works but the border is still not transparent, is it possible?Thank you very much!
$("#diagram").ejDiagram(
{
//To remove the Gridlines
snapSettings: { snapConstraints: ej.datavisualization.Diagram.SnapConstraints.All &~ej.datavisualization.Diagram.SnapConstraints.ShowLines }
});
|
Hi! is it possible to put a backgroung image of the grid?
Thanks!
backgroundImage: {
alignment:ej.datavisualization.Diagram.ImageAlignment.XMidYMin,
scale: "meet",
source:"https://cdn.syncfusion.com/content/images/company-logos/Syncfusion_Logo_Image.png"}, |