Combined charts (line and bar)

Where in Apex do we set which series is "Line" and which one is "Bar"? I saw the examples listed in the Anychart website but I'm getting the data as a result of SQL command in Apex so I don't have control of the series tags within the data section. Help please.
Ana

You may use pl/sql to generate JavaScript to create chart object and to generate xml for the chart.
Create a Dynamic PL/SQL region in the page.
copy following code to the source code for PL/SQL
DECLARE
chartData varchar2 (10000);
BEGIN
chartData:='<anychart>
<charts>
<chart>
<data>
<series name="Year 2003" type="Bar">
<point name = "A" y="2166"/>
<point name = "B" y="630"/>
<point name = "C" y="1662"/>
<point name = "D" y="1862"/>
<point name = "E" y="750"/>
<point name = "F" y="300"/>
</series>
<series name="Year 2000" type="Line">
<point name = "A" y="1160"/>
<point name = "B" y="930"/>
<point name = "C" y="1162"/>
<point name = "D" y="1362"/>
<point name = "E" y="350"/>
<point name = "F" y="300"/>
</series>
</data>
</chart>
</charts>
</anychart>';
HTP.p
<div id="combiChart" >
<script type="text/javascript" language="javascript">
    var chart = new AnyChart("/i/flashchart/swf/AnyChart.swf");
    chart.width = "500";
    chart.height = "300";
    var cData=''' || chartData  || ''';
    chart.setData(cData);      
    chart.write("combiChart");
    </script>
END;After pasting to the code window you may be required to remove any carriage returns within above xml data. I put carriage return for clarity of xml structure.
For further customization refer to Anychart xml reference.

Similar Messages

  • Seek 2D Line and Bar Chart Graphs HOWTO

    Can anyone share with me on where I could obtain/teach
    me how to write 2D Line and Bar Chart Graphs ?
    I like the class/program to be called from java code and not
    from command prompt to plot points or bar graphs.
    Please, no vendor recommendations.
    I dont have the $ to purchase.
    Any help is appreciated.
    Thanks

    I checked the web site of JFreeChart and its document
    says to get premium service, it requires $.
    I dont really have the $ to purchase that software.
    It's a vendor product!Just to clarify, JFreeChart is free software, it is licensed under the GNU LGPL. You get the complete source code, including lots of demos, Javadoc HTML pages, an install document in PDF format, and access to the support forum for absolutely no charge. You don't have to pay a fee to unlock special features in the software, everything is there in the free download.
    As a way of funding the project, we sell a JFreeChart Developer Guide which includes a lot more information about using JFreeChart. But it is only the documentation we sell, not the software.
    Hope that helps,
    Dave Gilbert
    JFreeChart Project Leader
    http://www.object-refinery.com/jfreechart/index.html

  • Remove shades behind lines and bars in Graphs

    Hello there, new here on the forum.
    I'm using obiee 11.
    Is there a way to remove the grey shades behind lines and bars in graphs?
    Both curious to know wether that's possible in one graph or make it standard for all graphs.
    Thanx!

    Try this
    Removing drop-shadow effect on graphs
    By default, whenever a chart is created, there is a drop-shadow effect on it. This property makes it difficult to read some of the
    charts. In order to turn it off this property, edit the file dvt-graph-skin.xml from the following location on your
    installation.
    \InstallHome\Oracle_BI1\bifoundation\web\msgdb\s_blafp\viewui\chart
    Edit the <Graph> tag, add the attribute visualEffects="NONE". (Do not remove the rest of the contents in the file). After
    editing, the contents should look like this.
    <Graph visualEffects="NONE">
    <SliceLabel>
    <!-- decimalDigitUsed is false here so that non-percentage pie slices do not pick up this value
    The DVTChartProcessor sets decimalDigitUsed to true if this is a percentage pie slice -->
    <ViewFormat decimalDigit="2" decimalDigitUsed="false"/>
    </SliceLabel>
    </Graph>
    Save the file.
    Richard Chan
    Rittman Mead Oceania

  • Combination line and bar chart ?

    Hi,
    I would like to show a chart with 4 rows as bar and 1 row as line chart basically a combination chart?
    Is it possible in keynote/
    Thanks.
    SG

    Insert two charts on the slide, change one to line and keep the other as bar, change the colour so the line can be easily seen.

  • SVG Multi Graph/Chart with line and bar

    I have a request for a "Multi-Graph-Chart"
    showing both - line chart and
    - bar-chart with respective data.
    Can you provide for the sourcecode, which is behind the SVG chart wizard enabling us to develop an own/individual SVG chart ?
    pls kindly advise.
    Bernhard
    nb. I mailed u this request already - but thought this might be of interest to others as well.

    Marc
    I would support this addition to functionality. I currently have a client who has a requirement for complex charting in HTMLDB, and I am looking at the SVG packages in HTMLDB, ie: WWV_FLOW_SVG, but as you say they are not independent APIs and rely heaviliy on the application's metadata. This is a shame as I could quite easily handle a nice PL/SQL API that would let me create custom SVG, instead of generating the SVG manually and embedding that in the page.
    Cheers
    Ben

  • How to plot line and bar chart in one graph

    i have one graph, but in this graph i want to plot line or bar chart using radio button selection.
    can i do that...

    You must have 2 data arrays or plots to get this. Make sure your plot legend is visible. Drag the plot legend vertical borders to view both plots. Select one of the plot to be bar plot (See the attachment)
    Attachments:
    BarPlots.PNG ‏14 KB

  • 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

  • Combine Line and Scatter types in Apex chart

    Hi,
    Can anyone help me create a chart which has features of both Line and Scatter types.
    i.e. Is it possible to join points in a Scatter chart?
    I am using Apex 4.1
    Thanks
    Bruceter

    Thanks for the suggestions Howard.
    I have searched the forum and found a few similar queries, but no obvious solutions.
    I may have to try something like the approach suggested by Hilary in the Re: Multi-series chart setting the series type - combine scatter and line thread.
    A common application for this functionality would be time-series plots (with irregular measurement times).
    Thanks
    Bruceter

  • Line chart and Bar chart

    I have been assigned task to build the line chart and bar chart in Java. Is there any Java package that supports to draw such charts?

    btw Sabre, are you still retired, being lazy and
    playing Bridge a bit? Yes Jos, I'm still retired. Nothing yet to temp me out if retirement and I play Bridge as often as possible.
    If so,
    good you lucky old bastard. Or are you longing for
    those silly project
    managers who want all the stuff finished by
    yesterday? ;-)I always ignored them anyway!
    >
    kind regards,
    Jos
    ps "when I say 'yes' that doesn't imply I
    understood the question"
    -------a project managerI only ever met one good project manager - my bank manager! He gave me all the encouragement I needed to get a project finished on time.
    Sabre

  • Stacked Bar Combination Chart in Reports

    Afternoon
    I have a requirement for a chart that is a stacked bar chart chart with the addition of a line chart.
    The combination chart allows Bars and Lines, but can't see how to change this to a stacked bar. Is there a setting I can change in the XML?
    Report Builder 10.1.2.0.2
    Any ideas?
    Regards
    Richard

    Solved my own problem.
    Add graphType="BAR_VERT_STACK" to the "Graph version..." as below:
    <Graph version="3.2.0.22" markerDisplayed="false" markerShapeInLegend="false" graphType="BAR_VERT_STACK">
    Also ensure the bar series are set to "MT_BAR" and line is set to MT_MARKER

  • Draw a Horizontal target line on bar chart

    I am trying to reach out to crystal report gurus for the following problem, I am relatively new with crystal reports and would really appreciate if you could provide a solution or point me in the rite direction.
    I am working on a project which requires to show various charts on an .aspx page. (.net 2.0).  I am using CR10.2.36, the one that comes with VS2005.
    My problem is I need to add a target line on a bar chart, e.g.
    I have (Y)years and (X)Examscores, I need to put a line (target line) on the Exam Scores.
        100%   |
    (X)Score  |
       45%
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   (this is the target line I need to have)
                   |
            0%  |__________________________
                    2001          2002           2003
    now this target line should move up or down on click of a button or a .net slider control (which would be somewhere on the page).
    So I guess I need to add the target line to the bar chart programmatically after the chart loads.
    I am able to load the chart correctly but I am not able to think of a way to add the target line and there seems to be not a lot of help out there.
    I appreciate your time and help
    Thanks
    rohan

    (X)Score  
    _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _   (this is the target line I need to have)
                   |
                   |__________________________
                    2001          2002           2003
    just drew the graph again since it was not looking good above

  • 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

  • How to draw a straight  dotted line on Bar chart at 70%?

    Hi
    Could you please let me know how to draw a straight dotted line on BAR CHART at 70%?
    Thank you

    Hi,
    This may vary depending on what version of crystal you are using.
    Right click on the graph & go to 'chart options' & choose 'Grids'
    In the grids pane go to the grids tab.  From there check the 'draw custom line at' and specify where you want to draw the custom line.
    Once the line is drawn highlight the line, right click and go to 'chart options' & 'selected item'.
    select what format you want the line to look like (choose the dashed one).
    good luck!

  • PO Line Item wise gross value for combination of WBS and Material Group

    Hello,
    Our requirement is to get report for PO Line Item wise gross value for combination of WBS and Material Group. Standard report ME2J gives net price but not gross value for Material Line items. Please let me know if any standard report( or ME2J) will suffice this requirement.
    Regards,
    Milind Dumbre

    Dear Milind
    No standard report available to get the PO Line Item wise gross value for combination of WBS and Material Group. Please go for development by taking reference ME2J.
    Warm regards
    Ramakrishna

  • Single Line and Stacked Bar Graph Representation

    Data to be plotted on graph is as follows
    Year and Month               Study               Planned Subject               Study-Site ID #               # Enrolled          
    2001 / 03          AMXN 9374               50     US-001               1          
    2001 / 04               AMXN 9374               50               FR-101               1          
    2001 / 04               AMXN 9374               50               SP-301               1          
    2001 / 04               AMXN 9374               50               US-001               2          
    2001 / 05               AMXN 9374               50               FR-101               1          
    2001 / 05               AMXN 9374               50               US-001               1          
    2001 / 06               AMXN 9374               50               FR-101               2          
    2001 / 06               AMXN 9374               50               SP-301               2          
    2001 / 06               AMXN 9374               50               US-001               1          
    I want to display the above data in line stacked bar graph format where the
    #Enrolled will be in Stacked Bar by Study -Site ( Y axis)
    Planned Subject should represent a single line at 50 ( Y axis)
    Group by Year and Month ( X- Axis)
    Study excluded ( Study will be selected from dashboard prompt)
    I'm getting the stacked view of Study Site ID correctly but I want Single Line for Planned Subject .
    Currently I'm getting multiple line .
    Eg for 2001/03 I'm getting line at 50 in yellow colour
    for 2001/04 I'm getting a line at 150 in different color since it has 3 Study-Site ID's But the desired output is Single Line at 50
    As per 11g doc this is not possible because there is some upgradation in the nature of the graph
    " Stacked line-bar graphs in which 2 or more measures are shown as lines on the same axis and are not stacked in 10g are stacked in 11g."
    Refer - http://docs.oracle.com/cd/E21764_01/bi.1111/e16452/apndx_ui_chngs.htm
    Is there any workaround for it ?

    Did you found any workaround for it ? I am too looking for same scenerio.

Maybe you are looking for

  • Import statement vanishes while saving metadata

    Hi I am facing a strange problem.When I am saving metadata the import statements are erased from the //begin import and // end section in the implementation section of a view.But all packages are present. Pease help

  • Optimizer not using index even after giving the hint

    Hi All, I am wondering why Optimixzer is not using the index in the below query Oracle Database 10g Enterprise Edition Release 10.2.0.1.0 - Prod SQL> select column_expression   2  from ALL_IND_EXPRESSIONS   3  where table_name like 'GTXN_DTL_V1'   4 

  • Purchasing New Windows Laptop

    I have had lots of trouble running iTunes on my old Celeron based Presario. My dad is going to buy me a new, Centrino based Windows laptop (I know, I already asked him for a Mac and he said no). Can anyone recommend a make, model and minimum configur

  • Printer prints randomly

    Tried to set up to web services and since then our printer prints this phrase randomly serveral times per day. printer randomly prints this statement: Connect h20629.ww2.hp.com:443 HTTP/1.0

  • Inventory Projection Report

    These are my tables:         eban,          ekbe,         eket,            ekko,         ekpo,         likp,         makt,         mara,         marc,                                 marm,         mbew,         mdpb,         mdrs,         mvke,