# Histograms - get calculated histfunc values from graph

**URL:** <https://community.plotly.com/t/histograms-get-calculated-histfunc-values-from-graph/63476>\
**Category:** plotly.js\
**Created:** [April 27, 2022, 2:59pm UTC](https://community.plotly.com/t/histograms-get-calculated-histfunc-values-from-graph/63476 "2022-04-27T14:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Giggino](https://avatars.discourse-cdn.com/v4/letter/g/f0a364/32.png) [@Giggino](https://community.plotly.com/u/Giggino)\
**Post date:** [April 27, 2022, 2:59pm UTC](https://community.plotly.com/t/histograms-get-calculated-histfunc-values-from-graph/63476/1 "2022-04-27T14:59:52Z")

</div>

Hi,  
in this example:

> **[Histograms](https://plotly.com/javascript/histograms/#specify-binning-function)**
>
> Over 24 examples of Histograms including changing color, size, log axes, and more in JavaScript.

how i can get the “sum” values of each bar, in javascript ?  
of course, if i print y data values of graph, like this way:

var gd = document.getElementById(“plotlyDIVID”);  
console.log(gd.data.y);

console.log returns me y value, not y “calculated” value.

thanks for support
