Currently, I am defining the style of cytoscape.js through CSS and converting it to JSON format using this resource. My goal is to implement a discrete mapper for styling. It's similar to the scenario discussed in How to use a descreteMapper like on cytoscapeweb?, however, I don't want to simply pass through the data(blah) value; rather, I intend to assign different values based on specific data(blah) criteria. Here is an example that I adapted from what I found here:
node {
color : {
defaultValue: red,
discreteMapper: {
attr: n_phosphorylated,
mapped: {
true: blue
}
}};
}
Upon implementing this, I encountered the error
TypeError: element._private.style.color.value is undefined
. Is there a mistake in my syntax or is this not supported?