Hi karthikeyan,
Here is a bit more detail about what Andrew alluded to. No vertical
gridlines are shown for the horizontal axis when discrete (or string)
values are used, not even for the line where you would think the vertical
axis line should be, which is also usually the baseline. If you want to
see vertical gridlines, you will have to convert your horizontal axis data,
which comes from the first column of your datatable, from strings to
numbers.
Since it appears you have non-uniformly distributed ranges, if you want to
keep the same even distribution of the columns, you should probably use
values that are just small integers, 0, 1, 2, etc, and include the string
representation also. e.g. {v: 0, f: '0-4'}, {v: 1, f: '5-18'}. And you
may also need to use the 'ticks' options to specify exactly the tick values
you want to display, like this: hAxis: { ticks: [{v: 0, f: '0-4'}, {v: 1,
f: '5-18'}, ...] }
Hope that helps.
On Thu, Oct 16, 2014 at 7:52 AM, born2achieve <[email protected]>
wrote:
> Hi Andrew,
>
> Thanks for your reply. I am little confused about the discrete type. Can
> you please show me some example code to achieve this vertical line would be
> great.
>
> Thanks in advance
>
>
> On Wednesday, 15 October 2014 22:09:37 UTC-4, Andrew Gallant wrote:
>>
>> The baseline only shows up when you have a continuous data type for the
>> domain (x-axis). Given your labels, I believe you are using a discrete
>> (string-type) axis, which will not show the baseline.
>>
>> On Wednesday, October 15, 2014 10:12:46 AM UTC-4, born2achieve wrote:
>>>
>>> I am missing the vertical line on the column chart.
>>>
>>> Can anyone please help me what if include i will get the Vaxis line
>>>
>> --
> 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
> http://groups.google.com/group/google-visualization-api.
> For more options, visit https://groups.google.com/d/optout.
>
--
Daniel LaLiberte <https://plus.google.com/100631381223468223275?prsrc=2> -
978-394-1058
[email protected] <[email protected]> 5CC, Cambridge MA
[email protected] <[email protected]> 9 Juniper Ridge
Road, Acton 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 http://groups.google.com/group/google-visualization-api.
For more options, visit https://groups.google.com/d/optout.