# What is the use of title in visState of visualization saved-object

**URL:** https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304
**Category:** Kibana
**Created:** [March 14, 2019, 10:06am UTC](https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304 "2019-03-14T10:06:56Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Riddhesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riddhesh/32/47232_2.png) [@Riddhesh](https://discuss.elastic.co/u/Riddhesh)
#### Post date: [March 14, 2019, 10:06am UTC](https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304/1 "2019-03-14T10:06:56Z")

</div>

I'm using kibana 6.3.1, and have a visualization saved-object:

```auto
{
  "type": "visualization",
  "updated_at": "2019-01-16T11:32:52.531Z",
  "visualization": {
    "title": "My Pie chart",
    "visState": "{\"title\":\"My Pie chart\",\"type\":...}",
    "uiStateJSON": "{}",
    "description": "",
    "savedSearchId": "0b39a6f0-f260-11e8-bb77-7981feeefd13",
    "version": 1,
    "kibanaSavedObjectMeta": {
      "searchSourceJSON": "{\"filter\":[],\"query\":{\"query\":\"\",\"language\":\"lucene\"}}"
    }
  }
}

```

What is the use of title inside visState which is same as outer title? If I change it, then nothing changes in visualization, and no error is thrown. So what is the use of it? And does it need to be always same as outer title?

---

<div class="post-metadata">

### Author: ![joshdover](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/joshdover/32/42020_2.png) [@joshdover](https://discuss.elastic.co/u/joshdover)
#### Post date: [March 14, 2019, 6:12pm UTC](https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304/2 "2019-03-14T18:12:03Z")

</div>

Looking through the Kibana source code it looks like this is typically kept in sync with the outer title field, though this could change in future versions I may be of more help if you could explain what you were trying to accomplish.

---

<div class="post-metadata">

### Author: ![Riddhesh](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/riddhesh/32/47232_2.png) [@Riddhesh](https://discuss.elastic.co/u/Riddhesh)
#### Post date: [March 15, 2019, 10:21am UTC](https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304/3 "2019-03-15T10:21:23Z")

</div>

Thanks for the reply.  
I am creating a page similar to managing kibana saved-objects, where we can edit the json. In kibana's management tab(`/app/kibana#/management/kibana/objects`) if I change the outer title and save, it doesn't change the inner title. But editing title from visualize tab(`/app/kibana#/visualize/edit`) changes the inner title as well as you said. Which got me confused that does it need to be same or not and where is it used.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)
#### Post date: [April 12, 2019, 10:30am UTC](https://discuss.elastic.co/t/what-is-the-use-of-title-in-visstate-of-visualization-saved-object/172304/4 "2019-04-12T10:30:45Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
