Try using this option hAxis: { ticks: [array-of-explicit-ticks] }
and specify exactly the tick values that correspond to your rows of data.

Or change your domain data (column 0) into strings, so the will be treated
as discrete values, and ticks between values will not be computed.

On Sat, May 21, 2016 at 1:21 PM, Sergej <[email protected]> wrote:

> Hello All!
> I need help! I use the Combo Chart and a have a small trouble.
> It's my code:
>
> ...
> var options = {
>           title: array['title'],
>           vAxis: {title: 'Count'},
>           legend : {
>                       position : 'bottom'
>                     },
>           hAxis: {
>                   slantedText: true,
>                   slantedTextAngle: array['slantedTextAngle'],
>                   showTextEvery:1,
>                   textPosition:'out',
>                 },
>           seriesType: 'bars',
>           chartArea:{left:55, top:40, right:10, bottom:120, width:200},
>           series: {5: {type: 'line'}},
>           colors:['#819FF7','#7CCD7C', '#e6693e']
>         };
>       var chart = new
> google.visualization.ComboChart(document.getElementById(array['div']));
>       chart.draw(data, options);
> ...
>
> it's a picture of my Combo Chart:
>
>
> <https://lh3.googleusercontent.com/-JiNk9_ouiB4/V0CTv14dzaI/AAAAAAAAAwI/MgDqLbzU-24t_nEOLgLfqCvgfekG4LulwCLcB/s1600/fix_bug.jpg>
>
>
> 09:00 10:00..15:00 are shifted to left from coloumns (I would like that
> they become on center ), but on this picture (07-14.05 and others are
> rotated on 90 degrees) they are on center
>
>
> <https://lh3.googleusercontent.com/-4JyAaTXryzs/V0CWuWCrydI/AAAAAAAAAwU/ngh2HQcf_mUYkX6QbRSpzFEYq2mZnuEpQCLcB/s1600/fix_bug2.jpg>
>
> What i can do?
>
>
>
>
>
>
> --
> 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 [email protected].
> To post to this group, send email to
> [email protected].
> 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/47ae49ae-2fa8-40af-8d5d-4eb703d2f3b4%40googlegroups.com
> <https://groups.google.com/d/msgid/google-visualization-api/47ae49ae-2fa8-40af-8d5d-4eb703d2f3b4%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2>
[email protected] <[email protected]>   5CC, Cambridge MA

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/CAOtcSJNyfMHSUVJ%3Djbusfk%3DhGAY3MMhXo3khYt-nQZugiUhvWA%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to