Thank you very much!

On Monday, October 29, 2018 at 2:41:14 PM UTC-7, Erik M wrote:
>
> I am trying to have a custom tick label in my x-axis in a Histogram though 
> it doesn't seem to work. I've tried:
>
> hAxis: {
>   ticks: [0,1,2,3,{v:5, f:'5+'}]
> }
>
> however that doesn't seem to work as ticks are not even being respected.
>
> In reading the documentation, there is an example in 
> https://developers.google.com/chart/interactive/docs/gallery/histogram#controlling-buckets
>  
> which shows that ticks can be used for hAxis.
>
>   var options = {
>>     title: 'Approximating Normal Distribution',
>>     legend: { position: 'none' },
>>     colors: ['#4285F4'],
>>
>>     *chartArea: { width: 401 },
>>     hAxis: {
>>       ticks: [-1, -0.75, -0.5, -0.25, 0, 0.25, 0.5, 0.75, 1] // <----- here 
>>     },
>>     bar: { gap: 0 },
>>
>>     histogram: {
>>       bucketSize: 0.02,
>>       maxNumBuckets: 200,
>>       minValue: -1,
>>       maxValue: 1
>>     }*
>>   };
>>
>>
> If I scroll down to the configuration options section 
> https://developers.google.com/chart/interactive/docs/gallery/histogram#configuration-options
>  
> there's no such thing as hAxis.ticks, there is however, a vAxis.ticks. So 
> is the example just outdated?
>
> Is there any way I can have custom ticks with labels along the x-axis for 
> Histograms?
>
> Thanks for the help!
>
>

-- 
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+unsubscr...@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/c0447412-5b8a-442f-8931-68a02da1af23%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to