cytoscape / cytoscape.js

Graph theory (network) library for visualisation and analysis
https://js.cytoscape.org
MIT License
10.11k stars 1.64k forks source link

Visual Style Demo Modification Does Not Display Color #913

Closed markcarter01 closed 9 years ago

markcarter01 commented 9 years ago

I have been playing around with the 'Visual Style' demo but the application is not displaying the node color or text outline. Here are the modifications I have made:

I have replaced the node and edges with my variables but left the format the same, e.g. id, name, weight, faveColor and faveShape. The colors were changed as were the shapes. When run against IE, FF, and GC, I get a fault pointing to: the Cytoscape.js file:

if( !flatProp ){ printMappingErr(); } flatProp.mapping = prop; // keep a reference to the mapping prop = flatProp; // the flattened (mapped) property is the one we want break;

The error message states:

Unhandled exception at line 5764, column 7 in http://localhost:52970/javascript/cytoscape.js 0x800a138f - JavaScript runtime error: Unable to set property 'mapping' of undefined or null reference

When I comment the css for (node) width, background-color, text-outline-color, and color, the application execute in the fashion expected. I may be doing something wrong but can't figure out what it is. The concept works in Cytoscape and Cytoscape Web. Code listed below:

maxkfranz commented 9 years ago

Please post your code as a gist, jsbin, or similar. I'm unable to reproduce this without a precise specification of what your code is doing.

maxkfranz commented 9 years ago

Closing

Not reproducible, and the reporter is unresponsive