Histogram horizontal Axis Origin

41 views
Skip to first unread message

Giampaolo Ferraro

unread,
May 13, 2014, 7:33:08 PM5/13/14
to google-visua...@googlegroups.com
Hi,

I am struggling to find how to set the origin of the horizontal axis on a histogram chart. I am working with a data set in which I already know the binSize and intervals for example:
75 - 200 (items:15), 200 - 325 (items:12)

So I have sort of hacked my way by producing 15 rows with value of 150, then 12 rows with values of 200 and specifying the histogram.bucketSize = 125. The problem with this is of course is that the first bucket goes from, 0- 125, So I would like to force the histogram to start the first bucket at 75.

Any one have any idea how I can do this? I have tried hAxis.minValue = 75

Thanks,
Giampaolo

Andrew Gallant

unread,
May 14, 2014, 1:59:15 AM5/14/14
to google-visua...@googlegroups.com
As I understand things, the HistogramCharts are undergoing improvements that will eventually allow you to do what you want, but the capability is not yet present.  Keep an eye on the google-charts-announce list for updates.

Mariana

unread,
Apr 17, 2017, 3:30:43 PM4/17/17
to Google Visualization API
I'm having the same problem after 3 years. Coud you resolve it? 

Daniel LaLiberte

unread,
Apr 17, 2017, 4:17:21 PM4/17/17
to Google Visualization API
You can now specify the hAxis viewWindow min and max, and hAxis baseline, if that does what you want. You can also specify all the ticks to use.  See the examples on the Histogram documentation page.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visualization-api@googlegroups.com.
Visit this group at https://groups.google.com/group/google-visualization-api.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/ebb8e82b-c723-4925-a6f2-4d7a01802660%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--

Mariana

unread,
Apr 18, 2017, 4:55:42 PM4/18/17
to Google Visualization API
Thank your for your answer, but it's not what I need. With your idea histogram will look like this.


 

And I need histogram haxis starting at the first value, not from zero.

Mostrando image.png



El lunes, 17 de abril de 2017, 17:17:21 (UTC-3), Daniel LaLiberte escribió:
You can now specify the hAxis viewWindow min and max, and hAxis baseline, if that does what you want. You can also specify all the ticks to use.  See the examples on the Histogram documentation page.
On Mon, Apr 17, 2017 at 3:30 PM, Mariana <mbal...@gmail.com> wrote:
I'm having the same problem after 3 years. Coud you resolve it? 

El martes, 13 de mayo de 2014, 20:33:08 (UTC-3), Giampaolo Ferraro escribió:
Hi,

I am struggling to find how to set the origin of the horizontal axis on a histogram chart. I am working with a data set in which I already know the binSize and intervals for example:
75 - 200 (items:15), 200 - 325 (items:12)

So I have sort of hacked my way by producing 15 rows with value of 150, then 12 rows with values of 200 and specifying the histogram.bucketSize = 125. The problem with this is of course is that the first bucket goes from, 0- 125, So I would like to force the histogram to start the first bucket at 75.

Any one have any idea how I can do this? I have tried hAxis.minValue = 75

Thanks,
Giampaolo

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualization-api+unsub...@googlegroups.com.
To post to this group, send email to google-visua...@googlegroups.com.



--
Auto Generated Inline Image 1
Reply all
Reply to author
Forward
0 new messages