Hola,

Es dificil interpretar tu pregunta: si ya tienes el codigo que maneja
la conversion de escala del resultado de los juegos al tamaño del
grafico el resto es mas facil. Para escalar los valores, toma el
maximo teorico por partido y multiplica por 34. Si embargo, el
resultado es bastante mayor al limite de datos que puedes graficar con
exactidud.

Sugiero que cambies el estilo del grafico y uses "bar chart" - el
espacio en la pantalla se ajusta mejor al tipo de problema que debes
resolver y va a permitir que añadas los partidos "aun-no-jugados" como
entidades con el valor (-1) - de esta forma el grafico no es afectado,
aunque los ejes van a ser representados correctamente

Es probable que necesites cambiar el grafico, utilizando dos "series"
- una con el resultado real del partido, y otra serie con un resultado
porcentual .

Un ejemplo, con seis partidos semanales, y dos series:

http://chart.apis.google.com/chart?
cht=bvs&chs=300x300&chd=t:8,14,-1,-1,-1,-1|10,19,-1,-1,-1,-1
&chco=4d89f9,c6d9fd&chbh=30&chxt=x,y&chxl=0:|1Oct|8Oct|15Oct|22Oct|
29Oct|5Nov

De nuevo, es dificil interpretar el problema. Espero que al menos
tengas una opinion que puedas utilizar. Suerte

Carlos M

:: www.carloslabs.com ::

On Oct 1, 3:37 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hello!
>
> This is my first entry here so... Hello all!
>
> I'm trying to paint a chart with JavaScript with data loaded from XML
> files. I have all code almost completed but I have a problem scaling
> the x-axis because I don't know how I can indicate the scaling for
> that axis. I give you an example:
>
> I want to get a line chart with the acummulated points of a basket
> team across the matches. I have a total of 34 matches along the year
> (x-axis), and I don't know the total points (y-axis). And my chart has
> the size 600x500
>
> I can do, with data scaling, that the proportion of the highest team's
> points has the size of the chart (500px), but I don't know how can I
> do to have the total matches the horizontal size of chart (600px).
>
> You can see what I mean in this 
> link:http://chart.apis.google.com/chart?cht=lxy&chs=600x500&chd=t:1,2,3,4,...500,333,1000,1500,1200,500,333,1000,1500,1200,500,333,1000,1500,1200,500,33
>  3,1000,1500,1200,500,333,1000,1500,1200,500,333,1000,1500,1200|1,2,15|100,2 
> 00,250|1,5,10,20,30|0,1000,0,3000,2500&chds=0,3100,0,3100,0,3100&chtt=Grado 
> s+de+los+equipos+de+la|LIGA+SOY+PRESIDENTE+DE+UN+CLUB&chco=3072F3,ff0000,00 
> 0000&chls=2,4,1
> (I would like blue line to occupy all chart)
>
> Any help will be welcome!
>
> Thank you, and sorry for my poor english
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Chart API" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/google-chart-api?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to