# Not able to create Canvas Bar chart Element

**URL:** <https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742>\
**Category:** Kibana\
**Created:** [January 18, 2019, 7:24am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742 "2019-01-18T07:24:22Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinay.rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay.rao/32/49894_2.png) [@vinay.rao](https://discuss.elastic.co/u/vinay.rao)\
**Post date:** [January 18, 2019, 7:24am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/1 "2019-01-18T07:24:23Z")

</div>

Dear All,

Am trying to create Bar chart element in Canvas. After selecting the corresponding Index in Data section and saving it, But in display section am not able to get any attributes in dropdown.  
Also tried selecting attributes(Priority and Ticket Number) by writing SQL query, Am able to get the attributes in dropdown, But not able to get priority attribute in Y-Axis.

Request all of you to help me achieve to create the chart in particular manner.(x-axis - Ticket Count and Y-axis - Priority).  
Attaching the screenshots for your reference.

Regards,  
Vinay N

 ![Scenario%20-1](https://us1.discourse-cdn.com/elastic/original/3X/2/e/2ed94be59c706766fc6de0a1d72b474ad6ff19fc.jpeg)  
 ![Expected%20result](https://us1.discourse-cdn.com/elastic/original/3X/a/2/a246921a8b4b2d19fc4ae6d76c82a0ecb88cc53d.jpeg)  
 ![Scenario%20-2](https://us1.discourse-cdn.com/elastic/original/3X/e/2/e2c37a10cee2cf07a135eac73e48e16db9d44098.jpeg)

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [January 18, 2019, 10:24am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/2 "2019-01-18T10:24:12Z")

</div>

Hi @vinay.rao ,

How does your index mapping look like? Can you share it?

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![vinay.rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay.rao/32/49894_2.png) [@vinay.rao](https://discuss.elastic.co/u/vinay.rao)\
**Post date:** [January 21, 2019, 9:53am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/3 "2019-01-21T09:53:38Z")

</div>

Continuing the discussion from [Not able to create Canvas Bar chart Element](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/2):

Dear @azasypkin,

PFA the attachment for your reference.

 ![Index-Mapping](https://us1.discourse-cdn.com/elastic/original/3X/7/b/7b38ac3607c8704feb4e702c3ac90c1c64f17e99.jpeg)

---

<div class="post-metadata">

**Author:** ![azasypkin](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/azasypkin/32/42216_2.png) [@azasypkin](https://discuss.elastic.co/u/azasypkin)\
**Post date:** [January 22, 2019, 8:55am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/4 "2019-01-22T08:55:06Z")

</div>

Hmm, but I don't see any `number` or `priority` fields that you were talking about here?

It'd be better if you can copy the actual mapping from `Management` -\> `Index Management` instead (click on index and look into `Mapping` tab), this way we can be 100% sure about the actual mapping.

Best,  
Oleg

---

<div class="post-metadata">

**Author:** ![vinay.rao](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/vinay.rao/32/49894_2.png) [@vinay.rao](https://discuss.elastic.co/u/vinay.rao)\
**Post date:** [January 22, 2019, 9:26am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/5 "2019-01-22T09:26:47Z")

</div>

Dear @azasypkin,

Thanks for detail guidance. PFA below detail for your reference.

{  
"mapping": {  
"doc": {  
"properties": {  
"@timestamp": {  
"type": "date"  
},  
"@version": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"http\_poller\_metadata": {  
"properties": {  
"code": {  
"type": "long"  
},  
"content-type": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"date": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"expires": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"link": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"pragma": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"server": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"set-cookie": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"strict-transport-security": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"transfer-encoding": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"x-is-logged-in": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"x-total-count": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"x-transaction-id": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
},  
"response\_message": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"runtime\_seconds": {  
"type": "float"  
},  
"times\_retried": {  
"type": "long"  
}  
}  
},  
"http\_request\_failure": {  
"properties": {  
"backtrace": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"error": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"name": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"request": {  
"properties": {  
"method": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"url": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
}  
}  
},  
"runtime\_seconds": {  
"type": "float"  
}  
}  
},  
"message": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"result": {  
"properties": {  
"assigned\_to": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"number": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
"priority": {  
"type": "text",  
"fields": {  
"keyword": {  
"type": "keyword",  
"ignore\_above": 256  
}  
}  
},  
Regards,  
Vinay N

---

<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:** [February 19, 2019, 9:28am UTC](https://discuss.elastic.co/t/not-able-to-create-canvas-bar-chart-element/164742/6 "2019-02-19T09:28:36Z")

</div>

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