This is a result of the function used to produce the curve (the API seems 
to use a Bézier 
curve<https://www.google.com/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&ved=0CDMQFjAA&url=http%3A%2F%2Fen.wikipedia.org%2Fwiki%2FB%25C3%25A9zier_curve&ei=3rluUY2yEfS84AOovICQBA&usg=AFQjCNGQPdXR6tIuuhIe4Kk0GR0CiFyDxw&sig2=TpaiDnK2mFZdDFGunzPNvg&bvm=bv.45368065,d.dmg>function,
 but this is not confirmed); there is no way to prevent this while 
the "curveType" option is set to "function".

On Wednesday, April 17, 2013 8:16:43 AM UTC-4, Chris Stamoulis wrote:
>
> Hey there,
>
> When the lines are drawn, they seem to have issues going off the chart 
> (over 100% and under 0%) Check out this code to reproduce.  Is there a way 
> around it?
>
> function drawVisualization() {
> var data = google.visualization.arrayToDataTable([
> ['Team', 'Team1', 'Team2', 'Team3'],
> ['Apr 2012', 100, 100, 0],
> ['May 2012', 100, 100, 100],
> ['Jun 2012', 100, 100, 100],
> ['Jul 2012', 100, 100, 100],
> ['Aug 2012', 100, 100, 100],
> ['Sep 2012', 100, 100, 100],
> ['Oct 2012', 100, 100, 0],
> ['Nov 2012', 100, 100, 100],
> ['Dec 2012', 100, 100, 0],
> ['Jan 2013', 100, 0, 100],
> ['Feb 2013', 100, 100, 100],
> ['Mar 2013', 100, 8, 100],
> ['Apr 2013', 100, 20, 100]
> ]);
>
> var formatter = new google.visualization.NumberFormat({pattern: "#'%"});
> formatter.format(data, 1);
> new 
> google.visualization.LineChart(document.getElementById('visualization')).
> draw(data, {
> curveType: "function",
> width: 900, height: 400, legend: 'top', title: 'Ticket Percentages in SLA 
> 12 Month Trending',
> vAxis: {
> gridlines: {
> count: 10
> },
>
> viewWindowMode: 'explict',
> viewWindow:{
> max:110,
> min:0
> },
> format: "#'%"}});
> }
>

-- 
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?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to