Combination Chart using APEX

Is it possible to develop a combination chart (say a stacked bar chart + line chart) on the same chart using APEX? I have a requirement where standard deviation needs to be on line chart connecting through bars.
Thanks
R

Hello,
Have a look here: http://anychart.apex-evangelists.com/pls/apex/f?p=755:10:0::NO:::
You find the source at the bottom of the page.
If you change your column alias to something like: "{name:Minimum;type:Line}" it will render that value as a line even if you have the main type as a column chart.
Regards,
Dimitri
http://dgielis.blogspot.com/
http://www.sumneva.com/

Similar Messages

  • Scheduling and gantt charts with Apex?

    Hi,
    Has anyone created Gantt charts using Apex?
    Also, has anyone used Apex to create schedules?
    From what I can tell, Javascript would be the language to use to add such code to an Apex app, correct?
    Regards,
    Daveio

    Leo,
    Thank you, I appreciate the help!
    An example of what I would like to do with scheduling:
    - Jobs will be entered into the application with priorities, durations, and required resources
    - The application will determine when the jobs can be started based on priority and resource availability
    - If a priority is changed the job start/finish dates should change accordingly
    This is the information I would like to have displayed on a Gantt chart. I have a text explaining several scheduling algorithms that will help make this possible but I will need to learn how to write the code into Apex.
    Dave

  • Apex 4 Combined chart with multiple y axis

    Hi
    I am trying to create a Combined Line chart & Bar chart using Multiple y-axis
    ie Line chart using one y-axis and Bar chart using another y-axis.
    In Apex 4 so for i am able to to create Combined chart by adding 2 series.. but i am unable to specify y-axis for each.
    Can any one help me how i can do this.
    Thanks
    Prabahar

    I managed to do it.
    Below I will post a working example of sql code and chart XML:
    SQL CODE:
    select NULL LINK,
    trunc(AUTH.AUTHDATETIME) "AUTHDATETIME",
    count(AUTH.AUTHDATETIME) "{n:Computer;t:Spline;y:ex}",
    sum(AUTH.amount) "{n:Video;t:Spline}"
    FROM schema.AUTH
    group by trunc(AUTH.AUTHDATETIME)
    order by 2 desc
    <?xml version = "1.0" encoding="utf-8" standalone = "yes"?>
    <anychart>
    <settings>
    <animation enabled="false"/>
    <no_data show_waiting_animation="False">
    <label>
    <text></text>
    <font family="Verdana" bold="yes" size="10"/>
    </label>
    </no_data>
    </settings>
    <margin left="0" top="" right="0" bottom="0" />
    <charts>
    <chart plot_type="CategorizedVertical" name="chart_1269902745139534">
    <chart_settings>
    <title enabled="False" />
    <chart_background>
    <fill type="Solid" color="0xffffff" opacity="0" />
    <border enabled="false"/>
    <corners type="Square"/>
    </chart_background>
    <data_plot_background>
    </data_plot_background>
    <axes>
    <y_axis >
    <scale type="Logarithmic" minimum="1" log_base="5"/>
                   <title><text>Video Sales</text></title>
                   <labels><format>{%Value}{numDecimals:0}</format></labels>
    </y_axis>
    <x_axis>
    <scale mode="Normal" />
    <title enabled="false"/>
    <labels enabled="true" position="Outside">
    <font family="Tahoma" size="10" color="0x000000" />
    <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
    </labels>
    <major_grid enabled="True" interlaced="false">
    <line color="Black" />
    </major_grid>
    <minor_grid enabled="True">
    </minor_grid>
    </x_axis>
              <extra>
    <y_axis name="ex">
    <title><text>Computer Sales</text></title>
    <labels><format>{%Value}{numDecimals:0}</format></labels>
    </y_axis>
    </extra>
    </axes>
    </chart_settings>
    <data_plot_settings enable_3d_mode="false" >
    <line_series>
    <tooltip_settings enabled="true">
    <format><![CDATA[{%Name}{enabled:False} - {%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
    <font family="Tahoma" size="10" color="0x000000" />
    <position anchor="Float" valign="Top" padding="10" />
    </tooltip_settings>
    <label_settings enabled="true" mode="Outside" multi_line_align="Center">
    <format><![CDATA[{%Value}{numDecimals:0,decimalSeparator:.,thousandsSeparator:\,}]]></format>
    <background enabled="false"/>
    <font family="Arial" size="10" color="0x000000" />
    </label_settings>
    <line_style>
                             <line enabled="true" thickness="1" opacity="1" />
    </line_style>
    <marker_settings enabled="True" >
    <marker type="Circle" />
    </marker_settings>
    </line_series>
    </data_plot_settings>
    #DATA#
    </chart>
    </charts>
    </anychart>
    Originally I used as an example below resource:
    http://anychart.apex-evangelists.com/pls/apex/f?p=755:46:0::NO:46::
    Thanks.
    Edited by: Jopa on 23.07.2010 1:07
    Edited by: Jopa on 23.07.2010 1:08

  • APEX 3.0 - flash chart using 'Omit label interval'- missing lines in legen

    Hi,
    we are using APEX 3.0 on XE as development database.
    Using the option "omit label interval" in the flash chart configuration, the legend will show the entries the same way as the x-axis.
    For example:
    setting omit label interval to 23 to get only one entry per day on the x-axis (we have one value for every hour of the day and want to display the chart on monthly base). My chart containing 2 series will show only the legend entry for the first serie.
    How can I display the second one ?
    Greetings
    Marco

    Marco,
    Unfortunately, that's a bug in APEX 3.0. The 3.0.1 patch set will include a fix for it.
    Marco

  • AnyChart Radar chart with APEX

    Hi all,
    I need to create Apex application that requires page to display radar chart, combined chart (bar & line). I understand that those charts are not come with APEX 4.1.0 (my APEX version). I look at AnyChart product since I see people talked in Oracle Forums. I would like to know if someone who has used AnyChart product creates radar / polar charts in APEX can give me any suggestion. My current environment is
    Apex 4.1.0, oracle 11g and a browser is IE 8.
    The company that I work for doesn’t have any plan to upgrade IE version. So I have limited tools to work with. On AnyChart web site, it shows radar chart in Flash, HTML5, and XML code. I can see the chart in Flash and XML code ok. I don’t know how radar chart will work in APEX and IE 8. Any helped explanation would be appreciated.

    Hi jessi,
    We can combine both line and bar chart in apex.
    Try by doing the following,
    1.Create the chart region with the chart type as 3D Column.
    2.Then parse the query that you want to show in chart(it will select the series type as bar by default).
    eg. select null link,ename, sal from emp; 3.Create the second series by editing the chart attributes.
    4.select the series type as line. Then parse the query that you want to combine with the above bar chart.
    eg. select null link,ename, avg(sal) over() avg_sal from emp; By this way we can combine the charts by adding the series,Check whether this is your requirement.
    Thanks,
    SreeNithi.

  • Migrating from Crystal Reports Charts using TopN and "Other" to Reporting Services

    I am currently migrating several Crystal Reports that have charts.  The chart series is set to use the TopN values in a count, and combine the rest of the series into one series titled "Other".  I see how to filter the chart using TopN, however I need to still show the rest of the data grouped as "Other".  I think the solution I need is to create a group expression that uses some sort of IIF function to create the "Other" group, but I haven't found a function that I can use to get the results I need.  Any ideas?
    Scott

    We were looking at report deployment options and evaluating SSRS vs Crystal Report Server.  There were several reasons we decided to go with SSRS:
    Cascading Parameters
    Ability to use multiple data sets in one report
    SSRS seemed more user-friendly than CRS
    There were a few other considerations I can remember now, but the final reason was price.  My company already had the licenses for SQL Server.  However, even if that was not a consideration I still would have gone with SSRS.
    Hope this info helps.
    Scott

  • Plotting a combination chart with a combo box for selection

    Hi:
    I am a newbie using xcelcius and I need help on the following:-
    I need to create a combination chart that plots 3 years data by month, and I need a combo box selection at the top that allows me to select user display for each difference region. I manage to create one that plots only 2008 data with a combo-box selection, but I have no idea how to do it for a combi chart in xcelcius. Any advise?

    Hi Ning,
    I assume your data are like this:
    Region             Year     Jan     Feb     Mar
    APJ             2006     $234.45     $310.34     $321.54
    APJ             2007     $314.35     $319.12     $256.89
    APJ             2008     $425.54     $354.34     $285.73
    North Asia     2006     $534.64     $642.35     $484.64
    North Asia     2007     $631.74     $654.13     $754.34
    North Asia     2008     $754.31     $423.65     $634.32
    South East Asia     2006     $536.42     $576.35     $525.42
    South East Asia     2007     $426.78     $876.43     $643.75
    South East Asia     2008     $634.87     $425.77     $732.43
    If this, you can set the insertion type of combo box is "Filtered Rows", see steps:
    1) For Combo Box, bind General > Labels to the Region column.
    2) Set General > Data Insertion > Insertion Type is "Filtered Rows" (you can refer to following flash to see how "Filtered Rows" works).
    3) Set its Source Data are Year, Jan, Feb, ... columns and Destination to blank cells.
    4) Bind Chart to the destination data.
    Now when you select APJ from Combo Box, it will insert all the rows of APJ data to the desitination cells which will be displayed in Chart.
    Hope this can help!

  • Problem with logarithmic scale in combination chart

    Hi Experts,
    I have a combination chart where in primary axis i am showing column chart and in the secondary axis, i am showing line chart. Now as the range of values used in the column chart is big, I have to use logarithmic scale in primary axis. But if i do so, the line chart is also being affected. The markers for negetive values in the line chart plotted in secondary axis disappears if I apply logarithmic scale in primary axis.
    Is it a bug ?
    I am using Xcelsius 2008 SP3.
    Thanks and Regards

    Hi:
       Yes, I also noticed this problem, seems when you set primary axis as "Logarithmic", the secondary axis with negative value "<0" will be ignored as "0". I think it should be an issue.
       A quick work around here is, swith your primary axis and your secondary axis, when you set seconary axis as "Logarithmic", the negative values in primary axis will not be ignored.
    Hope it helps.

  • Combination Chart: How to link auto-scaling of both Y-Axis?

    I have a combination chart showing a couple bars and a couple lines.  The bars use the left Y-Axis and the lines correspond to the right Y-Axis.  Although they are based off seperate Y-Axis', the information is still related to each other.
    Under my combination chart i have a slider which increases/decreases a 3rd set of red bars and it can push them so high that the Y-Axis will auto-scale itself, which is great.  But what happens is the secondary Y-Axis will not also re-scale to go wth the primary Y-Axis.  I have 2 screenshots to help demonstrate things a bit better.  So although the information is still technically correct, it is visibly incorrect.  Is there a way to link these 2 Axis together so it knows the max on the left Y-Axis before touching the slider is related to the max on the right Y-Axis? So if the primary y-axis grows, the secondary needs to as well?
    PICTURES
    The slider adjusts the red bars and i put them all the way up just before the point where it re-scales the primary y-axis:
    http://img38.imageshack.us/img38/7853/beforel.jpg
    Now i cranked the slider all the way up and the primary y-axis rescaled itself but the bars still look the exact same in relation to that blue line running across them.  The 2 lines on the graph that use the right y-axis should have dropped lower at the same time the blue/yellow bars did:
    http://img602.imageshack.us/img602/7996/afters.jpg
    Thanks for the help, I appreciate it!

    Hi Scott,
    You can control the scaling on the secondary Y axis. Find the maximum of the data for line as well as the column chart (here you can take help of MAX() excel formula) then take the maximum value out of the result and that cell storing data from slider. In this way we can find out the largest data among all. Use that data as the maximum limit for primary as well as for secondary axis,
    Go to the Behavior tab of the chart > primary scale > maximum limit > elect the cell containing the calculated maximum value.
    Repeat the same steps for secondary axis also. Now the change in one series will have uniform effect on both the axis.

  • Change color palette of combination chart

    Hello everyone,
    I am experiencing a problem when trying to change to color palette of a combination chart.
    According to the api there should be a method setColorPalette(aColorPalette) and a property colorPalette;
    (JsDoc Report - SAP UI development Toolkit for HTML5 - API Reference - sap.viz.ui5.types.Combination)
    when I try to call this method I receive the following error:
    TypeError: Object [object Object] has no method 'setColorPalette'
    I introduced the combination chart before by calling jQuery.sap.require("sap.viz.ui5.types.Combination"); outside of the controller;
    I also tried to add the porperty colorPalette in xml, but it seems to be ignored.
    Has anyone an idea on what the reason could be?
    Best regards,
    Benedikt

    Hi Benedikt,
    you can find below working code of changing color palette of chart.
    This is based on pie chart but accordingly you can use for combination chart.
    JS Bin - Collaborative JavaScript Debugging&lt;/title&gt; &lt;link rel=&quot;icon&quot; href=&quot;http://static.jsbin.…
    Regards,
    Chandra

  • How to Create downloadable charts in Apex ?

    Hi All,
    I m using Apex 4.
    I want to know that how can i create charts that can be downloadable as image, pdf etc.
    Thanks in advance

    You cannot with apex out-of-the-box.
    You need some kind of plugin for charts.
    Maybe Dimitri Gielis's non-flash-charts could do that (www.apex-evangelists.com) but I'm not sure.
    regards,
    Richard

  • Stacked Bar and combination chart

    Hi Guys,
    Does anyone know if it is possible to do a combination chart with a stacked bar chart and line chart.
    Thank you
    Jess

    Jess_C,
    There is no predefined chart to solve ur purpose. Try to sync both the charts and use Manul scaling.
    Thanks.
    Karthik

  • Possibility of creating combination chart Barchart/Line graph within OBIEE

    Hi
    Is it possible to create a combination chart within OBIEE as can be done in Excel by changing the chart type on one of the individual series - ie graph multiple series of data as a combination of Barchart & Line series?
    Any info appreciated
    Thanks & Regards
    K

    The charting can be as dynamic as you like if you willing to pre-configure the required options.
    Simply create as many charts as you want from one request, and use a view selector to allow the user to switch between them.
    You can use level based measures and any else you want as seperate columns (all in same request) then chart them accordingly.
    Hope this helps

  • Openoffice spreadsheet draw combination charts  programatically

    hi all,
    we need to develop a project that is an extension in OO so that it could display a mutitype chart we have drawn in Excel.
    Essentially, we have a combination chart consists of a candle stick chart and a line chart appearing together. OO could not display it!
    (see http://qa.openoffice.org/issues/show_bug.cgi?id=27363).
    We have research the problem for a while and figure that the easiest way is to develop an extension in Java using the Netbean Integration tool. Probably, adding a new chart type so that it is matched to the excel version. In chart2, it appears that they have changed the structure to a MVC model and under the diagram service, a coordinate system could have a list of charttype. So it appears that it is possible to draw a chart with different charttype on it even without the extension. However, we have not tried the chart2 API as we can't find a working example and SUN is not very helpful either and they discourage us to use chart2.
    (see http://graphics.openoffice.org/chart/chart2codestructure.html)
    can you give us advise how to approach this problem ?
    documentation resources , code snippets to call chart2 api from java code and any other helpful suggestion will be very welcomed.
    thanks.

    ok let me put it simply :
    com:sun:star:chart2 is not written in java, it is all written in C++ with those horrible IDL files which I don�t want to know about.
    However, i do think UNO make it possible to be used in a java environment.
    i searched the OOo website and also the web for an example snippet of a java program that calls com:sun:star:chart2 ; but i didn't found anything.
    it would be great if SUN engineers in this forum show me an example of how to use the OOo chart2 API in a java program.
    thanks.

  • Combined Chart with Jfreechart

    I am using jfreechart-0.9.3 for drawing 4 charts on the same plot. I want to have two of them horizontally and two vertically next to eachother. When I tried to imitate the code of Demo combined charts by jfreechart (which only draws two charts next to eachother horizontally), I can't do that vertically. Because there is no
    com.jrefinery.chart.HorizontalXYBarRenderer and com.jrefinery.chart.VerticalDateAxis classes. How can I make it vertically? Is there any other classes which could be usefull in jfreechart?
    The code of two horizontal charts looks like this:
    import com.jrefinery.chart.JFreeChart;
    import com.jrefinery.chart.ChartPanel;
    import com.jrefinery.chart.XYPlot;
    import com.jrefinery.chart.XYItemRenderer;
    import com.jrefinery.chart.VerticalXYBarRenderer;
    import com.jrefinery.chart.HorizontalDateAxis;
    import com.jrefinery.chart.VerticalNumberAxis;
    import com.jrefinery.chart.CombinedXYPlot;
    import com.jrefinery.chart.tooltips.TimeSeriesToolTipGenerator;
    import com.jrefinery.data.BasicTimeSeries;
    import com.jrefinery.data.TimeSeriesCollection;
    import com.jrefinery.data.Day;
    import com.jrefinery.data.XYDataset;
    import com.jrefinery.data.IntervalXYDataset;
    import com.jrefinery.date.SerialDate;
    import com.jrefinery.ui.ApplicationFrame;
    import com.jrefinery.ui.RefineryUtilities;
    * A demonstration application showing a time series chart overlaid with a vertical XY bar chart.
    public class CombinedXYPlotDemo extends ApplicationFrame {
    * Constructs a new demonstration application.
    public CombinedXYPlotDemo(String title) {
    super(title);
    JFreeChart chart = createCombinedChart();
    ChartPanel panel = new ChartPanel(chart, true, true, true, false, true);
    panel.setPreferredSize(new java.awt.Dimension(500, 270));
    this.setContentPane(panel);
    * Creates a combined XYPlot chart.
    private JFreeChart createCombinedChart() {
    // create a parent plot...
    CombinedXYPlot plot = new CombinedXYPlot(new VerticalNumberAxis("Value"),
    CombinedXYPlot.HORIZONTAL);
    // create subplot 1...
    IntervalXYDataset data1 = this.createDataset1();
    XYItemRenderer renderer1 = new VerticalXYBarRenderer(0.20);
    renderer1.setToolTipGenerator(new TimeSeriesToolTipGenerator("d-MMM-yyyy", "0,000.0"));
    XYPlot subplot1 = new XYPlot(data1, new HorizontalDateAxis("Date"), null, renderer1);
    // create subplot 2...
    XYDataset data2 = this.createDataset2();
    XYPlot subplot2 = new XYPlot(data2, new HorizontalDateAxis("Date"), null);
    XYItemRenderer renderer2 = subplot2.getRenderer();
    renderer2.setToolTipGenerator(new TimeSeriesToolTipGenerator("d-MMM-yyyy", "0,000.0"));
    // add the subplots...
    plot.add(subplot1, 1);
    plot.add(subplot2, 1);
    // return a new chart containing the overlaid plot...
    return new JFreeChart("Horizontal Combined Plot",
    JFreeChart.DEFAULT_TITLE_FONT, plot, true);
    * Creates a sample dataset.
    private IntervalXYDataset createDataset1() {
    // create dataset 1...
    BasicTimeSeries series1 = new BasicTimeSeries("Series 1", Day.class);
    series1.add(new Day(1, SerialDate.MARCH, 2002), 12353.3);
    series1.add(new Day(2, SerialDate.MARCH, 2002), 13734.4);
    series1.add(new Day(3, SerialDate.MARCH, 2002), 14525.3);
    series1.add(new Day(4, SerialDate.MARCH, 2002), 13984.3);
    series1.add(new Day(5, SerialDate.MARCH, 2002), 12999.4);
    series1.add(new Day(6, SerialDate.MARCH, 2002), 14274.3);
    series1.add(new Day(7, SerialDate.MARCH, 2002), 15943.5);
    series1.add(new Day(8, SerialDate.MARCH, 2002), 14845.3);
    series1.add(new Day(9, SerialDate.MARCH, 2002), 14645.4);
    series1.add(new Day(10, SerialDate.MARCH, 2002), 16234.6);
    series1.add(new Day(11, SerialDate.MARCH, 2002), 17232.3);
    series1.add(new Day(12, SerialDate.MARCH, 2002), 14232.2);
    series1.add(new Day(13, SerialDate.MARCH, 2002), 13102.2);
    series1.add(new Day(14, SerialDate.MARCH, 2002), 14230.2);
    series1.add(new Day(15, SerialDate.MARCH, 2002), 11235.2);
    return new TimeSeriesCollection(series1);
    * Creates a sample dataset.
    private XYDataset createDataset2() {
    // create dataset 2...
    BasicTimeSeries series2 = new BasicTimeSeries("Series 2", Day.class);
    series2.add(new Day(3, SerialDate.MARCH, 2002), 16853.2);
    series2.add(new Day(4, SerialDate.MARCH, 2002), 19642.3);
    series2.add(new Day(5, SerialDate.MARCH, 2002), 18253.5);
    series2.add(new Day(6, SerialDate.MARCH, 2002), 15352.3);
    series2.add(new Day(7, SerialDate.MARCH, 2002), 13532.0);
    series2.add(new Day(8, SerialDate.MARCH, 2002), 12635.3);
    series2.add(new Day(9, SerialDate.MARCH, 2002), 13998.2);
    series2.add(new Day(10, SerialDate.MARCH, 2002), 11943.2);
    series2.add(new Day(11, SerialDate.MARCH, 2002), 16943.9);
    series2.add(new Day(12, SerialDate.MARCH, 2002), 17843.2);
    series2.add(new Day(13, SerialDate.MARCH, 2002), 16495.3);
    series2.add(new Day(14, SerialDate.MARCH, 2002), 17943.6);
    series2.add(new Day(15, SerialDate.MARCH, 2002), 18500.7);
    series2.add(new Day(16, SerialDate.MARCH, 2002), 19595.9);
    return new TimeSeriesCollection(series2);
    * Starting point for the demonstration application.
    public static void main(String[] args) {
    CombinedXYPlotDemo demo = new CombinedXYPlotDemo("Combined XY Plot Demo");
    demo.pack();
    RefineryUtilities.centerFrameOnScreen(demo);
    demo.setVisible(true);

    I don't believe it supports putting them vertically and horizontally... only one way or the other. ...
    Although, 0.9.3 is pretty old... what about a newer version... I haven't played with those charts in about 9 months, so my info is a little out of date. Problem is, after 0.9.6 (I think) they changed a lot of the packages around so a lot needs to change.

Maybe you are looking for

  • Possible Problem/Bug In GridBag Layout ????

    I've done hundreds of Gridbag layouts in the past 2 years and just noticed this weird little behavior today..... Basically what I'm trying to do is arrange panels like this..... +--------+--------+--------+ |        |        |        | |   A    |   

  • Problem with csv

    I am trying to migrate storage for hyper-v vm's to a new csv.  When I try to move any VM's storage to the new target I get the following error.. an error occurred while moving the virtual machine storage 0x80071008 invalid parameter. I have already u

  • Documents

    Can anybody send me relevant documents on SEM -BPS and BW-BPS at <b>[email protected]</b> is there any book like Fu-fu for SEM-BPS/BW-BPS?

  • EJB Isolation levels in ejb-j2ee-engine.xml

    Can anyone explain to me why I only seem to have the option of using the 'repeatable read' isolation level in Netweaver Developer Studio? I'm new to SAP and Netweaver but as a seasoned J2EE developer I would have expected to find read committed, read

  • Unable to update latest BlackBerry App World software

    I have tried several times to update the BlackBerry App World software on my Blackberry Curve 8520. But the update has not happened. I have connected my mobile to the desktop and Connection to smart phone is successful. It did show my PN on the Brows