The baseline that is drawn vertically is controlled by the horizontal axis,
because the value associated with that baseline, which is where it
intersects the horizontal axis, is only relevant to the hAxis.  So that is
why the vertical baseline is for the hAxis.

Here is an example showing how you might want to display it:
http://jsfiddle.net/dlaliberte/13cobanx/

Regarding the annotations, by the way, the way you have your data, with one
value per series, is going to make it more difficult to add the
annotations, since each series column would have to be followed by a
separate annotation column.  Is there a reason you need to distribute your
values into separate series?


On Thu, Jul 23, 2015 at 3:35 PM, Pamela Whittaker <
[email protected]> wrote:

>
>
> On Thursday, 23 July 2015 20:07:09 UTC+1, Daniel LaLiberte wrote:
>>
>> Pamela,
>>
>> I think you mean there isn't a base line for the hAxis, which would be
>> drawn next to the 0 to 1200 ticks on the vAxis.   But you could define such
>> a base line and include it in your hAxis options like this:
>>
>>   hAxis: {
>>     baselineColor: 'red',
>>     baseline: 0,
>>     viewWindow: { min: 0, max: 6 }
>>
>
>
>
>
>
>
> Nope I mean I want a vertical one not a horizontal one - Pam
>
>
>>   }
>>
>> You can add annotations to your data which can be used to display the
>> values above each value.  See:
>> https://google-developers.appspot.com/chart/interactive/docs/roles
>> And you can disable interactivity for tooltips by adding the option
>> enableInteractivity with a false value.
>>
>>
>> On Thu, Jul 23, 2015 at 1:07 PM, Pamela Whittaker <[email protected]>
>> wrote:
>>
>>> I have
>>>
>>>
>>> <script type="text/javascript">
>>>       google.load("visualization", "1.1", {packages:["corechart"]});
>>>       google.setOnLoadCallback(drawChart);
>>>       function drawChart() {
>>>         var data = google.visualization.arrayToDataTable
>>>             ([['X', '1', '2', '3', '4', '5', '6'],
>>>               [1, 1, null, null, null, null, null],
>>>               [2, null, 100, null, null, null, null],
>>>               [3, null, null, 200, null, null, null],
>>>               [4, null, null, null, 300, null, null],
>>>               [5, null, null, null, null, 400, null],
>>>               [6, null, null, null, null, null, 500]
>>>         ]);
>>>
>>>         var options = {
>>>           legend: 'none',
>>>           vAxis: { minValue: 0, maxValue: 1200, gridlineColor:
>>> 'transparent'},
>>>
>>>           hAxis : {textColor: 'transparent', gridlineColor:
>>> 'transparent', baselineColor: 'transparent'},
>>>           colors: ['#3366CC'],
>>>           pointSize: 20,
>>>         };
>>>
>>>         var chart = new
>>> google.visualization.LineChart(document.getElementById('Chart_Div_Revenue'));
>>>         chart.draw(data, options);
>>>       }
>>>     </script>
>>>
>>>
>>>
>>>
>>> That removes all the grid lines but I a vertical line next to the 0 to
>>> 1200 for the vAxis but there isn't a base line for the vAxis so how do I
>>> get one please. Also is it possible to have it say 1, 100, 200 etc above
>>> the circles instead and get rid of the rollover popups. Thanks
>>>
>>>  --
>>> 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]   5CC, Cambridge MA
>> [email protected] 9 Juniper Ridge Road, Acton MA
>>
>


-- 
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.

Reply via email to