I have 10 data sets in a line chart and some of them range from 0-64, other from 30-150, etc.

However, the resulting chart shos the end point of all lines at the value of 100 in the y-axis. Why is that, what am I doing wrong. THe resulting URL is this: http://chart.apis.google.com/chart?cht=lc&chs=750x400&chtt=Meine erste Karte&chf=bg,s,&chd=s:rrrtztz222234557999,Amnprtvy13336669999,wwwwwyyy00000224669,Aprrrtuxz2222235779,ppppvvvvv2222222229,mmmoqrruwz001356669,nttttwwzz1111394558,AAssvy0355556688889,zzzzz22555556666669,AAttvww044445577779&chco=ff0000,00cc00,0066b3,ff8000,ffcc00,330099,990099,ccff00,ff33ff,ffff33&chl=||||||||||||||||||&chdl=A3: Spreizung im Hüftgelenk|A4: Anziehung im Hüftgelenk|B1: Beinstreckung|B7: Beugung im Kniegelenk sitzend|F2: Rückenflexion|F3: Rückenstreckung|C1: Überzug|C5: Rudern im Schultergelenk|D5: Armkreuzen|H1: Armbeugung

Comments

jurgenhaas’s picture

To solve the problem I have now calculated the $max value in _google_charts_series() across all series before coding the data:

  $max = 0;
  foreach (element_children($data) as $series) {
    $series_data = _charts_series_values($data[$series]);
    $series_data[] = $max;
    $max = max($series_data);
  }

and then disable $max = max($series_data); which calculates the reference point for each serie selarately.

quicksketch’s picture

Status: Active » Closed (won't fix)

The D6 version of the module is no longer receiving updates, if you have the same problem for the D7 version of the module, please reopen.