Which chart was clicked on?

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

  1. #1

    Default Which chart was clicked on?

    Hi,

    event.target.name appears to give me what I'm after but is there a better
    (more usual) way of obtaining the id/name of the chart that was clicked on? For
    example, is there no way to derive it from event.hitData.chartItem?

    Also, please tell me what the ActionScript equivilent of the following
    JavaScript is: -

    var myObj = document.getElementById(myVar);

    Cheers Richard Maher

    FlexBeginner Guest

  2. Similar Questions and Discussions

    1. stacked Bar chart/Line chart hybrid- Charting
      Hi all, I have a requirement to have a stacked bar graph, with a line graph on the same chart. Has anyone here done this before? Apparently there...
    2. Refreshing chart data doesnt update chart
      I must be missing something simple here. I have a column chart that is using an array for its dataprovider. However, when I update the underlying...
    3. Error in DBD::Chart (called from DBIx::Chart)
      I'm receiving this error message when I run a PERL script: Use of uninitialized value in string ne at C:/Perl/site/lib/DBD/Chart.pm line 2491. ...
    4. Which cell was clicked
      I would like to create a postBack when user click on the cell: In my dataGrid, I put the button column: <asp:buttoncolumn visible="false"...
    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: Which chart was clicked on?

    FlexBeginner,

    event.currentTarget (rather than event.name) is always the better option to
    ensure you're consistently getting the correct object that dispatched the click
    event. Put a break point on the line in your event handler for that click and
    you can check out all the props associated with the click event, they'll have
    the info you're after.

    jinx82002 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