DataField
This untyped object represents a Data Field, which is a node or edge attribute definition.
A data field object contains the following properties:
DataSchema
This is an untyped object that represents a Data Schema type.
A data schema is automatically created when a network is loaded into Cytoscape Web, and cannot be created programatically through the API. However you can use the org.cytoscapeweb.Visualization :: addDataField and org.cytoscapeweb.Visualization :: removeDataField methods to change the current schema.
A data schema has two attributes:
Those are arrays of DataField objects:
var schema = {
nodes: [
{ name: "id", type: "string" },
{ name: "label", type: "string" }
],
edges: [
{ name: "id", type: "string" },
{ name: "weight", type: "number", defValue: 0.5 }
]
};