I need to create a dynamic chart page that charts multiple values for multiple elements over time.
For example, a query could be something like:
select element, date_val, value
from table
where element IN('abc','bcd','def') and date_val > '5/5/2007'
Output:
abc,5/5/2007,10
abc,5/6/2007,15
abc,5/7/2007,8
bcd,5/5/2007,12
bcd,5/6/2007,15
bcd,5/7/2007,20
def,5/5/2007,10
def,5/6/2007,27
def,5/7/2007,2
The number of elements is dynamic - anywhere from 1 to 20. The number of dates is dynamic, too.
I need it to chart one line for each element, with values over time.
Any ideas?? Am I missing something obvious?
For example, a query could be something like:
select element, date_val, value
from table
where element IN('abc','bcd','def') and date_val > '5/5/2007'
Output:
abc,5/5/2007,10
abc,5/6/2007,15
abc,5/7/2007,8
bcd,5/5/2007,12
bcd,5/6/2007,15
bcd,5/7/2007,20
def,5/5/2007,10
def,5/6/2007,27
def,5/7/2007,2
The number of elements is dynamic - anywhere from 1 to 20. The number of dates is dynamic, too.
I need it to chart one line for each element, with values over time.
Any ideas?? Am I missing something obvious?