Professional Web Applications Themes

Multiple series chart with differing dates - Macromedia Flex General Discussion

Is there a way to display multiple series on a chart when the data for the horizontal axis doesn't match up? For example: if data1 (val, date) is (10, 01/05/2008) (15, 02/08/2008) (20, 03/01/2008) and data2 (val, date) is (8, 01/12/2008) (25, 02/10/2008) (30, 03/14/2008) how would I get the data to display on a multiple series chart. Right now, I am using a CategoryAxis for the horizontal axis. If I do something like this: hAxis.dataProvider = data1; hAxis.categoryField = "date"; it will show only the series for data1, but not data2....

  1. #1

    Default Multiple series chart with differing dates

    Is there a way to display multiple series on a chart when the data for the
    horizontal axis doesn't match up? For example:

    if data1 (val, date) is (10, 01/05/2008) (15, 02/08/2008) (20, 03/01/2008)
    and data2 (val, date) is (8, 01/12/2008) (25, 02/10/2008) (30, 03/14/2008)

    how would I get the data to display on a multiple series chart. Right now, I
    am using a CategoryAxis for the horizontal axis. If I do something like this:

    hAxis.dataProvider = data1;
    hAxis.categoryField = "date";

    it will show only the series for data1, but not data2.



    Solerous Guest

  2. #2

    Default Re: Multiple series chart with differing dates

    Here I believe you'll find your answer
    [url]http://livedocs.adobe.com/flex/3/html/help.html?content=charts_types_12.html[/url]
    mab_bond Guest

  3. #3

    Default Re: Multiple series chart with differing dates

    Thanks for the reply.

    That link tells you how to add multiple axis to a chart which is what I'm
    doing, but unless you want to have two horizontal axis on the bottom (which
    looks terrible) or put one on the top and one on the bottom (which looks
    awkward), this solution is not very good.

    The problem is that the data ranges for the horizontal are the same, but the
    individual timestamps are slightly different, sometimes off by only a few
    hundredths of a second.

    To attempt to work around this, I merged the two arrays, but that seemed to
    mess up the display of the data.

    Is there not a way to just draw the second series on top of the first without
    having to lock it to the axis? It seems like the answer is no when using the
    standard packages. But is there a way to override this and get it to draw
    properly?





    Solerous Guest

Similar Threads

  1. multiple series charts foreground & background
    By Solerous in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: May 21st, 08:06 PM
  2. multiple chart
    By larcelarcen in forum Macromedia Flex General Discussion
    Replies: 2
    Last Post: April 14th, 01:24 PM
  3. How do I dynamically add a series to a chart? flex 1.5
    By biggermork in forum Macromedia Flex General Discussion
    Replies: 0
    Last Post: January 23rd, 06:46 PM
  4. Multiple Chart Series using different dataProvider
    By jmicah in forum Macromedia Flex General Discussion
    Replies: 8
    Last Post: September 8th, 09:50 PM
  5. Dynamic Series in Bar Chart
    By tommywolf in forum Macromedia Flex General Discussion
    Replies: 1
    Last Post: May 24th, 03:35 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not 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