ColdFusion 9 CFCHART CFCHARTSERIES Issue -


I am displaying a chart with one or more line series data comes from a query and works correctly If the chart is higher than the series, however, if only one series has been returned, then it is not being displayed correctly.

The code used here is:

  & lt; cfchart format = "flash" tipstyle = "mouseover" showlegend = "yes" xaxistitle = "date" yaxistitle = "hits" chartwidth = "1200" chart -text = "300" & gt; & Lt; cfoutput query = "qryReport" group = "APP_SYS_NR" & gt; & Lt; Cfchartseries serieslabel = "# qryReport.APP_NA #" type = "line" & gt; & Lt; Cfoutput & gt; & Lt; cfchartdata item = "#date format (qryReport.CDR_DT," mm / day / yyyy ") #" value = "# qryReport.TOT_HIT_CNT #" & gt; & Lt; / Cfoutput & gt; & Lt; / Cfchartseries & gt; & Lt; / Cfoutput & gt; & Lt; / Cfchart & gt;   

The black out area located above this chart lists the key for the key of the two rows:  task chart

In this chart (when only one APP_SYS_NR returns), instead of just being a label, all the dates are converted into labels. What exactly do I want to do: broken chart

Edit: I It has been detected that according to Adobe for the ShowGuend attribute of cfchart, whether or not to display the legend when there is more than one data series in the chart, I think that when there is only one data series, then it is completely craps. And gives data points in the legend. I tested on Cold Fusion 9 and Cold Fusion 10.

The solution here is to set the showgende when there is only one series to display Instead, use a chart title in that example. See the following modified code:

  & lt; cfset VARIABLES.blnShowLegend = "no" & gt; & Lt; Cfset VARIABLES.strChartTitle = "# qryReport.APP_NA #" & gt; & Lt; Cfif ListLen (URL.lstApps) GT 1 & gt; & Lt; cfset VARIABLES.blnShowLegend = "Yes" & gt; & Lt; Cfset VARIABLES.strChartTitle = "" & gt; & Lt; / cfif & gt; & Lt; cfchart format = "Flash" title = "#carsizable.structitle #" tipstyle = "mouseover" style = "apestats" showage = "# virizil.blonshoseand #" exxistitel = "date" yaxistitle = "hits" chartwidth = "1200" chartite = "300" & gt; & Lt; cfoutput query = "qryReport" group = "APP_SYS_NR" & gt; & Lt; Cfchartseries serieslabel = "# qryReport.APP_NA #" type = "line" & gt; & Lt; Cfoutput & gt; & Lt; Cfchartdata item = "#date format (qryReport.CDR_DT," mm / day / yyyy ") #" value = "# qryReport.TOT_HIT_CNT #" & gt; & Lt; / Cfoutput & gt; & Lt; / Cfchartseries & gt; & Lt; / Cfoutput & gt; & Lt; / Cfchart & gt;    

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -