Help w/ CFChart and labels

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

  1. #1

    Default Help w/ CFChart and labels

    Hi folks,

    I'm using CF 7 and trying to get a chart finished up. Its all working except
    the labels along the Y axix. Because of the length of the label text,
    sometimes it skips displaying a label.
    [url]http://65.36.195.142/images/screenshot.jpg[/url]. I've got the legend showing up and
    that helps but I really want the axis labels to function better.

    Can I somehow control the characteristics of the text labels and maybe tilt
    the axis so they don't display acroos, but up and down? Or can I change the
    size?

    Other ideas?

    srushing Guest

  2. Similar Questions and Discussions

    1. CFCHART & VERTICAL LABELS
      I love ColdFusion, and have been using it, literally, for years. And I think many aspects of the new CFMX7 are great. HOWEVER, that being said, I...
    2. page labels
      how to use the setPageLabels using JSObject in vb .net? An error occurs while using JSO.setPageLabels(page,label) in vb.net. Please let me know...
    3. cfchart labels
      I am missing something here. In my chart, it is not putting the labels under the bars. There is is 3 bars, and each should have a label along the...
    4. 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
    5. CFCHART: Horizontal bar labels are squished in 7
      We're looking at upgrading to CFMX 7, but we're having some issues with our initial tests (using the developer edition). My main concern right now...
  3. #2

    Default Re: Help w/ CFChart and labels

    I believe the only way to do this is to use a style and then edit the .xml file
    for that style.

    ie. in your cfchart tag put:

    <cfchart style="silver">

    then modify your C:\CFROOT\charting\styles\silver.xml file to:


    <xAxis>
    <labelStyle isHideOverlapped="false" orientation="horizontal" />
    <titleStyle font="Arial-12-bold" isMultiline="false" />
    </xAxis>

    (the line you have to change is the "isHideOverlapped")

    This should show every label, but they will probably be on top of each other a
    bit.

    Xenotrim Guest

  4. #3

    Default Re: Help w/ CFChart and labels

    I'm doing a similar bar chart but can't seem to find a way insert the labels
    across the bottom like srushing does. I want to display a label for "Strongly
    Agree,Agree,Neither Agree or Disagree,Disagree,Disagree Strongly" even if they
    are a NULL value. The only way right now seems they each have to have one
    record to display. Got an example of some code?

    Waimea Wilbur Guest

  5. #4

    Default Re: Help w/ CFChart and labels

    Wilbur,

    I had a friend send me this thread on blogspot: [url]http://cfchart.blogspot.com/[/url]

    There is a reference in there to a patch for cfchart that added some options,
    including a veritical style option example. Take a look there. BUt I've got
    mine working although I don't have access to the code from here. If you need
    my a piece of code, email me and I'll post it back here later when I'm near it.

    S

    srushing Guest

  6. #5

    Default Re: Help w/ CFChart and labels

    Thanks srushing, I still like to look at your code, it's how I've taught myself the most about coding is looking at examples.
    Waimea Wilbur Guest

  7. #6

    Default Re: Help w/ CFChart and labels

    Sure. I've attached the CFCHART portions of the code. prior to that I simply
    was assigning the variables var1-var13 values but the chart structure I think
    it what you want. I did modify a style and change one of the parameters to
    verticle for the text orientation, as the other document mentioned.


    S



    <div align="center">
    <cfchart name="chart8" format="JPG" style="blueVert"
    chartwidth="700"
    chartheight="400"
    show3d="true"
    gridlines="11"
    showxgridlines="yes"
    labelformat="number"
    seriesplacement="cluster"
    showlegend="yes"
    yAxisTitle = "Frequency"
    >
    <cfchartseries type="bar" serieslabel="Problem Areas | Office Staff"
    colorlist="blue,red,yellow,green, aqua, fuchsia, teal, purple, olive, black,
    maroon">
    <cfchartdata item="Rude Staff" value="#var1#">
    <cfchartdata item="Rude, Check-in" value="#var2#">
    <cfchartdata item="Rude, Check-out" value="#var3#">
    <cfchartdata item="Rude, Exam Area" value="#var4#">
    <cfchartdata item="Staff Uncomfortable" value="#var5#">
    <cfchartdata item="Uncomfortable at Check-in" value="#var6#">
    <cfchartdata item="Uncomfortable at Check-out" value="#var7#">
    <cfchartdata item="Uncomfortable in Exam Area" value="#var8#">
    <cfchartdata item="Staff didn't keep you informed" value="#var9#">
    <cfchartdata item="Uninformed at Check-in" value="#var10#">
    <cfchartdata item="Uninformed at Check-out" value="#var11#">
    <cfchartdata item="Uninformed at Exam Area" value="#var12#">
    <cfchartdata item="Other" value="#var13#">

    </cfchartseries>
    </cfchart>

    srushing Guest

  8. #7

    Default Re: Help w/ CFChart and labels

    That did it, thanks alot.
    Waimea Wilbur 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