# Spaces issue in pie chart

**URL:** <https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007>\
**Category:** Elasticsearch\
**Created:** [December 1, 2014, 2:30pm UTC](https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007 "2014-12-01T14:30:01Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavan\_Elthepu](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@Pavan\_Elthepu](https://discuss.elastic.co/u/Pavan_Elthepu)\
**Post date:** [December 1, 2014, 2:30pm UTC](https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007/1 "2014-12-01T14:30:01Z")

</div>

Hi,  
I have an issue with pie chart. Whenever I have a content with space, it is  
treating as separate values.  
Ex: I have, 'United States'  
It is showing two slices in pie chart. One is 'United', and another one,  
'States'.

here is my mapping  
{  
"mappings" : {  
"_default_" : {  
"properties" : {  
"state" : {"type": "string", "index" : "not\_analyzed" }  
}  
}  
}  
}  
';

may i know where I am doing wrong?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![dadoonet](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/dadoonet/32/137187_2.png) [@dadoonet](https://discuss.elastic.co/u/dadoonet)\
**Post date:** [December 1, 2014, 2:47pm UTC](https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007/2 "2014-12-01T14:47:18Z")

</div>

Hard to say without a full repro.

But you are right, the way for doing this is by setting your field as not analyzed.

--  
David Pilato | Technical Advocate | [Elasticsearch.com](http://Elasticsearch.com)  
@dadoonet [https://twitter.com/dadoonet](https://twitter.com/dadoonet) | @elasticsearchfr [https://twitter.com/elasticsearchfr](https://twitter.com/elasticsearchfr) | @scrutmydocs [https://twitter.com/scrutmydocs](https://twitter.com/scrutmydocs)

> Le 1 déc. 2014 à 15:30, Pavan Elthepu [pavan.elthepu@gmail.com](mailto:pavan.elthepu@gmail.com) a écrit :
> 
> Hi,  
> I have an issue with pie chart. Whenever I have a content with space, it is treating as separate values.  
> Ex: I have, 'United States'  
> It is showing two slices in pie chart. One is 'United', and another one, 'States'.
> 
> here is my mapping  
> {  
> "mappings" : {  
> "default" : {  
> "properties" : {  
> "state" : {"type": "string", "index" : "not\_analyzed" }  
> }  
> }  
> }  
> }  
> ';
> 
> may i know where I am doing wrong?
> 
> --  
> You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
> To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com) [mailto:elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
> To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com) [https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com?utm\_medium=email&utm\_source=footer](https://groups.google.com/d/msgid/elasticsearch/a08c3105-d14e-458b-9edc-64aaf3c2eafb%40googlegroups.com?utm_medium=email&utm_source=footer).  
> For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout) [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/B9990667-AA86-4DE3-AD47-289858A01C87%40pilato.fr](https://groups.google.com/d/msgid/elasticsearch/B9990667-AA86-4DE3-AD47-289858A01C87%40pilato.fr).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<div class="post-metadata">

**Author:** ![Pavan\_Elthepu](https://avatars.discourse-cdn.com/v4/letter/p/db5fbb/32.png) [@Pavan\_Elthepu](https://discuss.elastic.co/u/Pavan_Elthepu)\
**Post date:** [December 1, 2014, 3:59pm UTC](https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007/3 "2014-12-01T15:59:51Z")

</div>

Here is my mapping:  
{  
"mappings" : {  
"_default_" : {  
"properties" : {  
"state" : {"type": "string", "index" : "not\_analyzed" }  
}  
}  
}  
}  
';

On Monday, December 1, 2014 8:00:01 PM UTC+5:30, Pavan Elthepu wrote:

> Hi,  
> I have an issue with pie chart. Whenever I have a content with space, it  
> is treating as separate values.  
> Ex: I have, 'United States'  
> It is showing two slices in pie chart. One is 'United', and another one,  
> 'States'.
> 
> here is my mapping  
> {  
> "mappings" : {  
> "_default_" : {  
> "properties" : {  
> "state" : {"type": "string", "index" : "not\_analyzed" }  
> }  
> }  
> }  
> }  
> ';
> 
> may i know where I am doing wrong?

--  
You received this message because you are subscribed to the Google Groups "elasticsearch" group.  
To unsubscribe from this group and stop receiving emails from it, send an email to [elasticsearch+unsubscribe@googlegroups.com](mailto:elasticsearch+unsubscribe@googlegroups.com).  
To view this discussion on the web visit [https://groups.google.com/d/msgid/elasticsearch/f3779d74-53c6-499a-8826-bb7fe581669f%40googlegroups.com](https://groups.google.com/d/msgid/elasticsearch/f3779d74-53c6-499a-8826-bb7fe581669f%40googlegroups.com).  
For more options, visit [https://groups.google.com/d/optout](https://groups.google.com/d/optout).

---

<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:** [July 6, 2017, 12:46am UTC](https://discuss.elastic.co/t/spaces-issue-in-pie-chart/21007/4 "2017-07-06T00:46:47Z")

</div>


