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 }
}
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] <[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.