Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.
-
orionMX #1
Basic charting question
I am trying to chart the running sum of a series of data points. For example,
comapany A produces a certain number of widgets every day. I am trying to show
a chart of the running total number of widgets produced, instead of the daily
number of widgets. Am I clear? If over 5 days it produces 1,2,3,4,5 widgets on
mon,tue,wed,thu,fri... I would like chart to show data points of 1,3,6,10,15.
Any help on how to do this greatly appreciated.
orionMX Guest
-
very basic question
Hi, I'm still a student and a beginner to Macromedia products. The animations excite me. For me as a beginner, both Director and Flash can do... -
Help with this basic question??
Hello I had a problem, I want to manage some parts of a movie with the F12 function key, but I don?t know how I used this code to other keys but... -
Basic PHP question
Greetings, I have a page called test.php. I want to call the same page but pass a variable to it so that data on the page (retrieved from mysql... -
basic css question
In several of my posts lately, I have made it known that I am nto a huge fan of using newer stuff as opposed to older methods of getting things... -
XP basic question
Hi, In Windows XP Pro, I only see the most basic of settings for user accounts, even though I am logged in as administrator. How can I change the... -
MikerRoo #2
Re: Basic charting question
cfchart does not have this functionality built in. However, you should be
able to produce a query column with the results you want and plot that as a
chart series.
If you have an MS SQL table with columns "SalesDate", "NumWidgetsSold" you can
query like in the attached code and then feed the query result to one or more
cfchartseries tags....
SELECT
PB.SalesDate,
PB.NumWidgetsSold,
(
SELECT
SUM (NumWidgetsSold)
FROM
PrivateBooks PB2
WHERE
PB2.SalesDate <= PB.SalesDate
)
AS RunningTotal
FROM
PrivateBooks PB
ORDER BY
PB.SalesDate
MikerRoo Guest



Reply With Quote

