cfchart and the x axis

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

  1. #1

    Default cfchart and the x axis

    I'm working on a weight loss application and am trying out the CFCHART tag for
    the first time. I'm charting weight over time. In working with the chart, I've
    noticed 2 things with regards to the x axis.

    1. I need to format the date items so the format is "5-16-2005" rather than
    the default "2005-5-16 00:00:00.0" as extracted from an access database.

    2. Weight has not been recorded on a consistant basis. There are sporatic
    recordings with gaps of up to a month before I started recording daily. How do
    I get the points on the x access to space according to date rather than
    automatically putting uniform spacing between data points?

    I am using MX 6.. Is this functionality available to me or would I need to use
    version 7?





    beavermjr Guest

  2. Similar Questions and Discussions

    1. Upgrade Axis 1.1 to Axis 1.2 CFMX 6.1
      Is it possible to change the Axis Engine from 1.1 to 1.2 in CFMX 6.1?
    2. cfchart rotate x axis labels
      This should be very easy to do. I want my x axis labels to be horizontial not vertical. How do I do this? Thanks trainmom
    3. format y-axis in cfchart
      The values displayed on the y-axis are are mix of float and int. The chart displays int values on the y-axis if I use only one cfchartseries tag....
    4. cfchart axis does not round
      I've noticed that when using CFCHART and when I'm showing a bar data that on the axis is always uses decimal points when showing the range of my...
    5. cfchart problem: i have too many entries in on axis
      You can use the Webcharts utility , which is located in the charting directory. You can define your own style and then refrence it using the format...
  3. #2

    Default Re: cfchart and the x axis

    #DateFormat(todayDate, "mm-dd-yyyy")#
    jorgepino Guest

  4. #3

    Default Re: cfchart and the x axis

    How would I use the date format command in the following line of code:

    <cfchartseries type="line" serieslabel="Present Weight" query="weight2" itemcolumn="date" valuecolumn="weight">


    beavermjr Guest

  5. #4

    Default Re: cfchart and the x axis

    <cfchartseries
    type="line"
    serieslabel="Present Weight"
    query="weight2"
    itemcolumn="#DateFormat(Date, "mm-dd-yyyy")# "
    valuecolumn="weight">
    jorgepino Guest

  6. #5

    Default Re: cfchart and the x axis

    thanks much that helps me out. any word on #2?
    beavermjr Guest

  7. #6

    Default Re: cfchart and the x axis

    id date format onl;y available in MX 7? mx 6 doesn't like it.
    beavermjr Guest

  8. #7

    Default Re: cfchart and the x axis

    the values itemcolumn and valuecolumn do not accept functions or evaluation of
    variables from query terms. Im not sure you might be able use a static
    variables but that would be pretty pointless.

    <cfchartseries type="line" serieslabel="Present Weight">
    <cfloop query="weight2">
    <cfchartdata item="#dateformat(date, "mm-dd-yyyy")#" value="#weight#">
    </cfloop>
    </cfchartseries>

    Symantec 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