# Visualize Numeric Value

**URL:** <https://discuss.elastic.co/t/visualize-numeric-value/106112>\
**Category:** Kibana\
**Created:** [November 2, 2017, 2:54am UTC](https://discuss.elastic.co/t/visualize-numeric-value/106112 "2017-11-02T02:54:33Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ChrisChua](https://avatars.discourse-cdn.com/v4/letter/c/8baadc/32.png) [@ChrisChua](https://discuss.elastic.co/u/ChrisChua)\
**Post date:** [November 2, 2017, 2:54am UTC](https://discuss.elastic.co/t/visualize-numeric-value/106112/1 "2017-11-02T02:54:33Z")

</div>

Hi,

I am new to ELK, this is my sample data : indent preformatted text by 4 spaces

```
{
	"Defect Count": {
		"Total": 0,
		"Test Category": "KitchenTest_AIX"
	},
	"Git Branch": "ivt_17.4",
	"Pass Rates": [
		{
			"Test Count": 119,
			"Error Count": 27,
			"Failure Count": 0,
			"Test Category": "KitchenTest_AIX",
			"Test Phase": "BVT",
			"Pass Rate": 0.773
		}
	],
	"Build Timestamp": "2017-10-24 06:32:00.0",
	"Build Version": 172,
	"Sprint": "17.4",
	"Build Name": "bvt.ivt_17.4.20171024-0232.172"
}

```

and this is my mapping:

```
{
      "mappings": {
        "statistic": {
          "properties": {
            "Build Timestamp": { 
              "type": "date",
              "format": "yyyy-MM-dd HH:mm:ss.0"
            },
            "Defect Count": {
              "type": "nested", 
              "properties": {
                "Test Category": { "type": "string" },
                "Total": { "type": "float" }
              }
            },
            "Pass Rates": {
              "type": "nested", 
              "properties": {
                "Error Count": { "type": "float" },
                "Failure Count": { "type": "float" },
                "Pass Rate": { "type": "float" },
                "Test Category": { "type": "string" },
                "Test Count": { "type": "float" },
                "Test Phase": { "type": "string" }
              }
            }
          }
        }
      }
}

```

and this is the result in elasticsearch

 ![Capture](https://us1.discourse-cdn.com/elastic/original/3X/b/9/b9a8a1fdd193fbcf717b0e5d89c7806f8f4909fb.PNG)

Now I try to create a visualization like this:

 ![Capture3](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1dd02f23220a7258581e11d9b2d019a98dc8fb85.PNG)  
Barchart=Test Count  
Linechart=Pass Rate

and this is what I tried but it doesn't work

 ![Capture2](https://us1.discourse-cdn.com/elastic/original/3X/1/d/1d3d24726998b2adfde64021abca89a2d07409ab.PNG)

Sorry for my poor English, any help is appreciated

---

<div class="post-metadata">

**Author:** ![weltenwort](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/weltenwort/32/53885_2.png) [@weltenwort](https://discuss.elastic.co/u/weltenwort)\
**Post date:** [November 3, 2017, 10:11am UTC](https://discuss.elastic.co/t/visualize-numeric-value/106112/2 "2017-11-03T10:11:14Z")

</div>

Hi @ChrisChua,

the only thing that stands out is the use of spaces in the field names, which is generally not recommended. Beyond that, it could be helpful to take a look at the response returned by elasticsearch for the visualization. You can inspect that by expanding the "spy" panel with the small arrow beneath the visualization.

---

<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:** [December 1, 2017, 10:11am UTC](https://discuss.elastic.co/t/visualize-numeric-value/106112/3 "2017-12-01T10:11:15Z")

</div>

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