APEX multi series line chart with different markers for each series

I am using APEX 4.0 and trying to create a multi-series line chart that will have a different for each series.
Does anyone know how to accomplish this?
Edited by: user4635837 on Apr 19, 2011 7:22 AM

Hello -
It is possible to do.
Another user in this forum has written some code snippets to assist in creating your own custom XML for charting. That reference can be found http://apex.oracle.com/pls/apex/f?p=36648:30:418355095936797::NO:::
Look this over and it should get you moving in the right direction.
What you are trying to do isn't terribly difficult. In fact, I did it fairly easily as can be seen http://apex.oracle.com/pls/otn/f?p=28155:4:362637005964920:::::
First, create a Hidden page item.
Next, create a process that runs before regions
That process will create the XML for your line chart and store it in the hidden page item. Use the above references for assistance in setting up the PL/SQL in the process
Then, create your custom XML for your chart. Replace the #DATA# tag in the custom XML with your hidden page item.
It is a bit daunting at first, but once you get the hang of it, it really isn't that bad.
Austin

Similar Messages

  • Creating a multi series line chart with different data providers

    I have 3 data providers of the same structure i.e ArrayCollection of DataElement and want to use them to create a multiseries line chart. I do not have just 1 dataProvider that can be used but 3 different data providers of the same structure that i want to use each for different series.
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>
    Please help!

    Sorry for the confusion. Actually I must be doing some thing wrong like using ColumnChart to display a line chart or something like that.
    I have now realized that a multi series line chart can be built by having a different data provider for each of the LineSeries object.
    So the code below would create a multi series line graph :
    [Bindable] private var orangeSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 101000, month: new Date( '01/01/2008' ) },
                            { sales: 960000, month: new Date( '02/01/2008' ) },
                            { sales: 475000, month: new Date( '03/01/2008' ) },
                            { sales: 425000, month: new Date( '04/01/2008' ) }
                [Bindable] private var appleSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 991000, month: new Date( '01/01/2008' ) },
                            { sales: 140000, month: new Date( '02/01/2008' ) },
                            { sales: 565000, month: new Date( '03/01/2008' ) },
                            { sales: 255000, month: new Date( '04/01/2008' ) }
                [Bindable] private var bananaSales : ArrayCollection =
                    new ArrayCollection(
                        [ { sales: 891000, month: new Date( '01/01/2008' ) },
                            { sales: 147560, month: new Date( '02/01/2008' ) },
                            { sales: 295000, month: new Date( '03/01/2008' ) },
                            { sales: 574000, month: new Date( '04/01/2008' ) }
    I want to create a line chart with orangeSales, appleSales and bananaSales as three different lines on the chart for different dates specified.
    <mx:ColumnChart showDataTips="true" >
            <mx:horizontalAxis>
                <mx:CategoryAxis
                    dataProvider="{orangeSales}"
                    categoryField="month"
                    />
            </mx:horizontalAxis>
            <mx:series>
                <mx:LineSeries displayName="OrangeSales" yField="sales" xField="month" dataProvider="{orangeSales}"/>
                <mx:LineSeries displayName="AppleSales" yField="sales" xField="month" dataProvider="{appleSales}"/>
                <mx:LineSeries displayName="BananaSales" yField="sales" xField="month" dataProvider="{bananaSales}"/>
            </mx:series>
    </mx:ColumnChart>

  • Line chart with different length series?

    Hello,
    I would like to draw a line chart with three different series.
    1. Previous year
    2. Current year (until now)
    3. Estimate (2 months)
    I've got 12 values for the previous year, 4 values for the current year (January to April) and 2 estimated values for May and June.
    When I define the three series, each is stretched over the whole width of the chart. How can I avoid that and force for instance the April values to be displayed above each other? Is it possible at all with this type of chart? (In Excel, it's quite easy...)
    Thanks for any help!
    Sabine

    Hi,
    You’ll have to write a query for your series 2 and 3 that has the same number of data points as your series 1 query, in your example that would be 12. Line series charts are always stretched over the full width by design. The months for which you have no data, would have a value of NULL. Please note that there is one issue, which has been fixed in 2.2, that causes the charting engine to only render dots instead of lines for series 2, 3, …, if they have a NULL value at the last data point. So if I understand your requirements correctly, you should try this on our 2.2 hosted beta instance, and then upgrade to 2.2 when it comes out.
    Regards,
    Marc

  • Line chart with more than 15 data series - color problem

    Hi all,
    I've built a line chart with 32 data series (user can control, which of them are displayed at a time). For series 16 to 32 I did manipulate the URL in the browser directly, because Application Express does only display parametrs for up to 15 series. This works fine so far except of displaying the colors. For each sieries I defined a different color. 29 of my 32 series are displayed in the desired color. But series 29, 31 and 32 are displayed in a default-color (#0099CC). It seems that this is a SVG-problem. In the SVG-source I find the wrong color. When I export my application, I see the right color.
    Thanks for help,
    Chris

    Hello,
    Which version of APEX are you using?
    Go to your Flash Chart attributes - get into your series (click the icon) in the section of Series Query you'll find the maximum rows.
    Regards,
    Dimitri
    -- http://dgielis.blogspot.com/
    -- http://apex-evangelists.com/
    -- http://apexblogs.info/

  • Scatter chart with different markers styles

    Hello,
    I am using Oracle Apex 4.
    i have created a scatter chart with three series
    i want to use different marker style for each serie :
    the first is circle
    the second is across
    the third is square.
    Any suggestions please.
    Thanx..

    Dir,
    any idea for this problem ?

  • Line chart with different "colors": Values not available are displayed as 0

    Hello,
    I defined a line chart with more than one lines (aka "colors" in the chart wizzard) - each line representing the (monthly) values of a year. x axis are the 12 months of the year; y axis are the values.
    When one defines such a line chart in BIP client there is a choice between sum, average and count for the data values.
    This is no problem for my template as there is only one value per month/year - so I used sum.
    The problem: for the actual year there are no values for future months . But bip nevertheless shows 0 for this month/year... Can one prevent this?
    Regards
    Peter

    Solved it finally - unavailable values must explicitly be passed to the report with nothing contained in the value tag.

  • Multiple iPods with different libraries for each?

    Hi all, how do I set up iTunes so that I can sync up different iTunes libraries with different iPods? I have two iPods with different music on each and want to keep the libraries separate. (One is from an older computer.) The only option I see when plugging in the older iPod is "do you want to rease this iPod and sync with this iTunes library?" Yikes, no.
    I'm using iTunes 9.
    thanks,
    Scott

    It seems that you would just create your two separate libraries for the two iPods, library A for iPod A and B for B. Then, either don't connect iPod A to the computer when you have library B open or vice versa, but if you do, just select not to sync when the prompt appears.
    Alternatively, elect to manually manage the iPods.

  • Scatter Chart with different markers

    Hello,
    I am using APEX4.0,
    i want to create a scatter chart with multiple Series,
    How i can associate differents Marker for Series ??????
    For example (Cercle for Serie1, rectangle for Series2 , ....etc).
    Regards.
    ouadah.

    This thread may help:
    {thread:id=928024}
    Jeff

  • Matrix with different dimensions for each column

    Hi,
    I would like to have a matrix with different dimensions (rows) for each
    column, for example, I want the first column has 3 rows, the second one
    5 rows, the third one 10 rows, and so on.....
    With a simple array it is not possible, and then I make an array (for
    my columns) of clusters and each cluster has another array (rows for
    that column). Is it the best way to do it? Is it correct?
    Thanks,
    ToNi.

    Yes, everything we told you in this old thread  is still true!
    LabVIEW Champion . Do more with less code and in less time .

  • Publishing an iCal group with different options for each calendar

    I work at a University and I've my various functions organized into their own calendar; I've a Office calendar for my office activities, a Class calendar for my class activities, a Club calendar for my club activities, and of course a personal calendar. The personal calendar is not published.
    As a general rule, the folks from each fuction know to go to the calendar I've published for them to keep track of their activities. But they also need to see when I'm available, and for that they need to see my entire calendar.
    They need to see what activity I'm engaged in because some of the time I've blocked out is inflexible - class times for example, or departmental meetings - so they know those times are unavailable; but some of the time I've blocked out is relatively flexible - like when I'm listed as being in the office working on a project.
    I can publish them all as a group, but there is one universal setting as to whether each calendar in the group shows details or not. Is there a way to customize what is shown for each calendar in the group? Basically, I don't want the details of my personal calendar published with the rest, but they need to see that I have that time blocked out for something so they know I'm not available. If I don't publish my personal calendar, gaps show up on the grouped calendar that really is not there - it's not time available for someone to schedule an activity.
    And one other question - is there a setting that preserves the colors of the various calendars when published? Right now they all show up as one color. It would help each group if they could scan the complete calendar for their activities.

    Hi K.
          I don't think it's possible to have those text properties vary in a text-ring, but you might be able to accomplish your goal using a pict-ring - using images of formatted text.  In the example (attached) Paint was used to create the pictures then import them into the pict-ring.  Here Unclebump shows how to use "Draw Text at Point.vi" to create formatted text in a picture control, though, I have no idea how to copy such pictures out of the pictures control!
    Cheers!
    "Inside every large program is a small program struggling to get out." (attributed to Tony Hoare)
    Attachments:
    FormattedTextPicRing.vi ‏14 KB

  • Publish multiple ical calendars with different colours for each calendar

    hi
    i am wanting to publish either multiple iCal calendars or a calendar group online so that the colours are preserved for different calendars. it would seem that the MobileMe published calendars still only support one colour (blue). could someone recommend another method of publishing read only iCal calendars online, preferably free, but i don't mind paying a small amount
    thanks
    nick

    Dear Ruben
    I would love to know how you can make some events Private.
    We use ical and sync to Google Calendar, but when I create events in iCal, there is no option to make it private.
    We have created a CalDAV connection to Google Apps Calendar, so any help about why there is no check box for Private would be appreciated.

  • Drop Down List in a table - different options for each row

    How can i have a drop down list in a table with different options for each row?
    My requirement is this.. I want to display, say employee dtails in a table, and one column is employee hobbies, whcih can have multiple values and each employee may have a different list of hobbies. So how can we populate the drop down for each row, with different options?

    Hey. Uh, this probably isn't the answer you were looking for, but it sounds like you've got a problem with your database design there. Generally speaking, your tables shouldn't have multi-valued fields, in the relational model anyway (sql). Instead, you should look at adding a separate table like EMPLOYEE_HOBBIES. Then you have a foreign key using the employees primary key as the foreign key in the employee_hobbies table, see what I mean? I might have misunderstood your explanation though, I'm not sure.
    Alternatively, you could just have hobbies as a big freeform varchar field, and don't bother to make people separate their hobbies into different fields (you'd have to abandon the drop-down listbox idea in this case). If there's no really important reason to make the distinction, then it's probably easier just to not do it.

  • Line chart with 2 different y axis

    hi,
    i have a question on line chart in apex. i'm using apex 4.2. is it possible to generate a line chart with 2 different y axis? here's a sample data to illustrates what i'd like the chart to look like.
    date price percent
    1/1 1 100
    1/2 2 90
    1/3 3 80
    1/4 4 70
    the x-axis will be the date column. the left y-axis would be the price column. and the right y-axis would be the percent column.
    i know i can plot multiple lines in a chart thru different series. but they're based on the same x and y axis range. thanks
    jim

    You beat me to it.
    One of the problems I'm having is that the begining and ending point(s) coincide. So, instead of two completely separate lines, I have an area bounded by the series 1 line on top and the series 2 line on the bottom. Since the points overlay, the values of those points also display one on top of the other. I'll have to see if there is a way to separate the series. I've had 3 separate series before, but never with two y-axis.
    Regards,
    Howard

  • Line Chart with Multiple Series

    Post Author: JayZee
    CA Forum: Charts and Graphs
    HI
    I am trying to create a line chart with multiple series for trend analysis on CR XI but not having much luck, I thought it would be so simple to do!
    My data is provided summarized on the server and is returned as 12 rows:
    Month       Year1        Year2      Year3      Year4     Year5January      100           80          75           90          120February      85           25           40           25          80etc for the rest of the months
    My problem is that I can only get the chart to accept the values to display as a summary and not just as the data pulled back from the server.  I have read an article on the support site for Crystal 6.0  but it doesn't seem to translate well into XI.
    If necessary I could redesign the table to bring back un-summarized data but that is quite a big job.
    Any help greatly appreciated.
    Jay

    Post Author: Tim Wise
    CA Forum: Charts and Graphs
    In the chart expert, put Month in the 'On change of' box and put each year in the 'Show values' box. This puts the month on the x-axis and plots each year as a line.
    Is that what you want?
    I did this in CR 2008 using your data in an Excel sheet.

  • Flash line chart with multiple lines

    Here a newbie with apex...
    Created a flash line chart with as source the following sql statement:
    select null link, year, sum(total_cost) from cost
    group by year
    a chart has been created with a single line. i wanted every year on an own line.
    The way i could do this is with multiple series like:
    select null link, year, sum(total_cost) from cost
    where year =2008
    select null link, year, sum(total_cost) from cost
    where year =2009
    But this not a good solition, cause now i've to add every year a new serie
    hope to get some help from here... txn in advanced.

    tnx for your reply...
    I will explain myself more by a picture of the wanted result, see below:
    [Click here for the example image|http://img44.imageshack.us/img44/3444/grapha.jpg]
    In your reply you wright you think i can create the graph with pl/sql process. After seeing my example you still think that's needed?
    Hope you or some else can help... tnx in advanced.
    greetings

Maybe you are looking for