Basic charting question

Ask a Question related to Coldfusion - Advanced Techniques, Design and Development.

  1. #1

    Default 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

  2. Similar Questions and Discussions

    1. 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...
    2. 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...
    3. 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...
    4. 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...
    5. 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...
  3. #2

    Default 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

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139