Hi,
I have a problem with timestamp data in coldfusion charts.
I want to see two line charts in the same timeline (x axis) but when the chart is generated I can see two lines but not in the same timeline.
This is the code:
<cfquery name="daHistorico1" datasource="PostgreSQL30">
select nodeid,result_time, temp from sample_mts310
where result_time < '2005-11-16 8:15:19'::TIMESTAMP and result_time > '2005-11-16 07:40:19'::TIMESTAMP and nodeid=7
</cfquery>
<cfquery name="daHistorico2" datasource="PostgreSQL30">
select nodeid,result_time, temp from sample_mts310
where result_time < '2005-11-16 8:15:19'::TIMESTAMP and result_time > '2005-11-16 07:40:19'::TIMESTAMP and nodeid=8
</cfquery>
<cfchart
format="jpg">
<cfchartseries type="line"
itemcolumn="result_time"
valuecolumn="temp">
<cfloop query="daHistorico1">
<cfchartdata item="#daHistorico1.result_time#" value="#daHistorico1.temp#">
</cfloop>
</cfchartseries>
<cfchartseries type="line"
itemcolumn="result_time"
valuecolumn="temp">
<cfloop query="daHistorico2">
<cfchartdata item="#daHistorico2.result_time#" value="#daHistorico2.temp#">
</cfloop>
</cfchartseries>
</cfchart>
Thanks in advance.
I have a problem with timestamp data in coldfusion charts.
I want to see two line charts in the same timeline (x axis) but when the chart is generated I can see two lines but not in the same timeline.
This is the code:
<cfquery name="daHistorico1" datasource="PostgreSQL30">
select nodeid,result_time, temp from sample_mts310
where result_time < '2005-11-16 8:15:19'::TIMESTAMP and result_time > '2005-11-16 07:40:19'::TIMESTAMP and nodeid=7
</cfquery>
<cfquery name="daHistorico2" datasource="PostgreSQL30">
select nodeid,result_time, temp from sample_mts310
where result_time < '2005-11-16 8:15:19'::TIMESTAMP and result_time > '2005-11-16 07:40:19'::TIMESTAMP and nodeid=8
</cfquery>
<cfchart
format="jpg">
<cfchartseries type="line"
itemcolumn="result_time"
valuecolumn="temp">
<cfloop query="daHistorico1">
<cfchartdata item="#daHistorico1.result_time#" value="#daHistorico1.temp#">
</cfloop>
</cfchartseries>
<cfchartseries type="line"
itemcolumn="result_time"
valuecolumn="temp">
<cfloop query="daHistorico2">
<cfchartdata item="#daHistorico2.result_time#" value="#daHistorico2.temp#">
</cfloop>
</cfchartseries>
</cfchart>
Thanks in advance.