Roymond,
Yes, this feature will be VERY helpful to tap the new features for
visualization via the browser... and I think it can be easily done -- if
not at the level of full integration -- at least to the degree that this
could be easily supported by a slight tweak to the current implementation.
When I inspect the canvas of a live graph display, I see node elements like
this:
<g class="node" transform="translate(372.1847005940832,156.8242386162587)"
><circle class="outline" cx="0" cy="0" r="20" fill="#30B6AF" stroke=
"#46A39E" stroke-width="2px"></circle>...snip...</g>
whereby the current implementation uses the minimalist 'node' class on the
'g' elements and then hard-codes in the contained circle element the
diameter, fill color and stroke color of the selected style selected in the
pop-up 'node detail' dialog.
WISH LIST (I think this would work): 1. Minimize any hard-coded style
properties (e.g. in the circle elements) 2. Add each label of a node to the
corresponding 'g' element's class property.
I believe the current behavior could still be the default via this tweak
while allowing an easy way to refine the display of multi-labeled data by
using the drag'n'drop editing of the associated stylesheet.
--Jim--
On Thursday, August 1, 2013 1:16:59 PM UTC-5, roymond wrote:
>
> I can only see that styles can be set for node properties, not labels. Is
> this true? I'd think it very useful to be able to distinguish between nodes
> with different labels.
>
> For instance, when creating people who write musical works:
>
> CREATE
> (base:Here {name:'Base'}),
> (berlioz:Person {birthplace:'France', personID:1, firstname:'Hector',
> lastname:'Berlioz', DOB:'18031211', DOD:'18690308' }),
> (beatrice:Work {type:'Opera', workID:1, parentID:1, sequence:0,
> movement:'', title:'Beatrice and Benedict', subtitle:'Opera in Two Acts',
> catalognumber:'H. 138', dateofcompletion:'1858' }),
> (composer1:Composer {role:'music', personID:1}),
> (berlioz)-[:WHO_WROTE_AS]->(composer1),
> (composer1)-[:OF_THIS_WORK]->(beatrice),
> (base)-[:IS_A]->(berlioz);
>
> composer1 is a :Composer, with a role:'music'. But there will also be an
> :Arranger, with a role:'orchestration'. How could I use the labels
> :Composer and :Arranger in styles?
>
--
You received this message because you are subscribed to the Google Groups
"Neo4j" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.