# Visualization directive for a histogram

**URL:** <https://discuss.elastic.co/t/visualization-directive-for-a-histogram/125040>\
**Category:** Kibana\
**Created:** [March 21, 2018, 4:57pm UTC](https://discuss.elastic.co/t/visualization-directive-for-a-histogram/125040 "2018-03-21T16:57:45Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![jordyd](https://avatars.discourse-cdn.com/v4/letter/j/a6a055/32.png) [@jordyd](https://discuss.elastic.co/u/jordyd)\
**Post date:** [March 22, 2018, 9:09am UTC](https://discuss.elastic.co/t/visualization-directive-for-a-histogram/125040/3 "2018-03-22T09:09:15Z")

</div>

Thanks for the answer. I got it to work but now when I hover over a bar, I get a 'Uncaught TypeError: self.formatter is not a function' error. I'm guessing that a certain setting is missing to fix or disable the hover.

```javascript
$scope.myVisData = {
   series: [{
        aggId:"1",
        aggLabel:"Root Errors",
        label:"Root Errors",
        values: [
         { x: 1521654330000, y: 1},
         { x: 1521654360000, y: 5},
         { x: 1521654390000, y: 2},
         { x: 1521654320000, y: 4}
        ]
      }
      ]
    };

```

---

_[View the full topic](https://discuss.elastic.co/t/visualization-directive-for-a-histogram/125040)._
