chart problem: set type="stacked"

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default chart problem: set type="stacked"

    I wrote a cfc to return an array to flex.
    the content is :
    <cfset obj=StructNew()>
    <cfset obj["name"] = "1">
    <cfset obj["o1"] = "500">
    <cfset obj["o2"] = "400">
    <cfset obj["o3"] = "300">
    <cfset arr[1]=#obj#>
    the flex file receive the array sent from cfc and can be shown on datagrid
    correctly

    then i want to create a column chart with stacked type like:

    <mx:ColumnChart id="columnchart1" dataProvider="{ChartSeries2}"
    type="stacked">
    <mx:horizontalAxis>
    <mx:CategoryAxis dataProvider="{ChartSeries2}" categoryField="name"/>
    </mx:horizontalAxis>
    <mx:series>
    <mx:Array>
    <mx:ColumnSeries yField="o1" />
    <mx:ColumnSeries yField="o2" />
    <mx:ColumnSeries yField="o3" />
    </mx:Array>
    </mx:series>
    </mx:ColumnChart>

    the problem is that stacked type doesn`t work correctly and three column
    series overlap.
    the value of the bar become 500400300

    is it a bug of chart?


    lightrain Guest

  2. Similar Questions and Discussions

    1. cfchart seriesplacement="stacked" CFMX7 problems
      Hi, I upgraded our server over the weekend to MX7 enterprise. I have a problem with charts now that do not work as they did in MX6.1. An example...
    2. CFINPUT type="radio" w/ "value" requires "label"
      On a Flash form, when you specify type='radio' and value='whatever', the value of the 'value' attribute will be displayed as a label if no 'label'...
    3. #25366 [NEW]: form buttons of type "image" dont send "submit" $_POST variable in IE
      From: jordanolsommer at imap dot cc Operating system: Windows XP PHP version: 4.3.2 PHP Bug Type: Variables related Bug...
    4. convert visual basic "string" data type to DB2 "blob"
      Does anyone know if a visual basic string data type can be converted to DB2 blob datatype? I have all data in XML files and I use Visual Basic to...
    5. DBD::Chart: DBI->connect fails "DBD/Chart.pm did not return a true value"
      Hello Group! I've got a problem with DBD::Chart (0.80). When I try to execute the following script: #!/usr/bin/perl -W use DBI; my $dbh =...
  3. #2

    Default Re: chart problem: set type="stacked"

    Today I tried another way.
    I sent a query from cfc to flex by AMF
    The data can be displayed on the datagrid correctly.
    [url]http://140.112.107.133/lightrain/chart2.gif[/url]
    Nothing is shown on the chart.
    Could someone help me??

    lightrain

    lightrain 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