# How to set a specific name to a CAPTION of a label

**URL:** <https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405>\
**Category:** Browser\
**Created:** [September 25, 2019, 12:47pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405 "2019-09-25T12:47:54Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![akshat\_mittal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/akshat_mittal/32/4359_2.png) [@akshat\_mittal](https://community.neo4j.com/u/akshat_mittal)\
**Post date:** [September 25, 2019, 12:47pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/1 "2019-09-25T12:47:54Z")

</div>

Hello Team,

May I know how to set a specific property to a CAPTION of a label in Neo4j-browser?

Thanks  
Akshat

---

<div class="post-metadata">

**Author:** ![andrew\_bowman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/andrew_bowman/32/73_2.png) [@andrew\_bowman](https://community.neo4j.com/u/andrew_bowman)\
**Post date:** [September 25, 2019, 1:28pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/2 "2019-09-25T13:28:13Z")

</div>

When viewing graph results, you should see label names just below the query part near the top of the result pane.

Click on the desired label whose caption you want to change. You should see additional controls at the bottom of the result pane related to display of nodes of that label. You can set the color and size of the node as well as select the caption to use.

---

<div class="post-metadata">

**Author:** ![akshat\_mittal](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/akshat_mittal/32/4359_2.png) [@akshat\_mittal](https://community.neo4j.com/u/akshat_mittal)\
**Post date:** [September 27, 2019, 5:57am UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/3 "2019-09-27T05:57:42Z")

</div>

Hello Andrew,

Many thanks for the quick help. I can successfully change the things according to my need.

Best Regards  
Akshat

---

<div class="post-metadata">

**Author:** ![CodeCase](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/codecase/32/5260_2.png) [@CodeCase](https://community.neo4j.com/u/CodeCase)\
**Post date:** [February 5, 2020, 5:03pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/4 "2020-02-05T17:03:54Z")

</div>

Hi Andrew,

is it possible to set the caption in a cypher query?  
Because I have millions of nodes and dont want to set the caption in browser by hand.

best regards

---

<div class="post-metadata">

**Author:** ![andrew\_bowman](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/andrew_bowman/32/73_2.png) [@andrew\_bowman](https://community.neo4j.com/u/andrew_bowman)\
**Post date:** [February 5, 2020, 11:50pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/5 "2020-02-05T23:50:45Z")

</div>

No, it's not currently possible, as there is no link between the visualizer and neo4j itself as far as what property to use in a visualization.

Note that you do not have to set the caption per node. In the visualization, you would select the label of interest, then select the property to use as a caption, and it would apply it for all nodes of that label in the result visualization.

---

<div class="post-metadata">

**Author:** ![yakhatfilms](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/yakhatfilms/32/13444_2.png) [@yakhatfilms](https://community.neo4j.com/u/yakhatfilms)\
**Post date:** [August 25, 2020, 7:30pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/6 "2020-08-25T19:30:16Z")

</div>

By default neo4j browser seems to use the node "name" property for the caption if the property exists, otherwise it uses the node id for the caption.

Possibly this is a standard as I see the same behaviour is graphelion.

maybe you can do a set property in your cypher and set the name property to some other property of that node?

---

<div class="post-metadata">

**Author:** ![corysimmons](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/corysimmons/32/15694_2.png) [@corysimmons](https://community.neo4j.com/u/corysimmons)\
**Post date:** [December 22, 2020, 8:46pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/7 "2020-12-22T20:46:55Z")

</div>

Seems like a waste of space that will clutter stuff just to specify the caption. It'd be nice if Cypher let you specify it as an option like `CREATE (n:SomeLabel { foo: 'bar', baz: 'qux' }, { caption: 'baz' })`.

I know this is a weird case, but seems like an optional settings object in Cypher would open lots of workarounds for these fringe cases.

---

<div class="post-metadata">

**Author:** ![clem](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/clem/32/4364_2.png) [@clem](https://community.neo4j.com/u/clem)\
**Post date:** [December 22, 2020, 10:47pm UTC](https://community.neo4j.com/t/how-to-set-a-specific-name-to-a-caption-of-a-label/10405/8 "2020-12-22T22:47:50Z")

</div>

You can tweak the caption with the `style.grass` file.

See:

> [@Set my own default nodes style in Neo4j Browser for everybody](https://community.neo4j.com/t/set-my-own-default-nodes-style-in-neo4j-browser-for-everybody/18208):
>
> How can I set my nodes style by default in Neo4j Browser (Color, Size, Caption) for everybody For example: I have a database on my server. Now when a new user connects to this database all the nodes looks the same size and with random property as a 'caption' How to set my own default style for everybody who connects to the base for the first time. Thank you in advance!

which will contain things like this (below). The caption field is the one you want.

```auto
node.Category {
  color: #569480;
  border-color: #447666;
  text-color-internal: #FFFFFF;
  caption: "{Name}";
  diameter: 80px;
}

```
