Bar Chart using Array Collection

I have an array collection like this.
How can i draw a bar chart between the month the sales.?
acChartingData:ArrayCollection = new ArrayCollection(
{Series: "Series 1", Period: "2002", Jan: "230.7", Feb:
"214.2", Mar: "240.3", Apr: "223.8", May: "231.3", Jun: "203.7",
Jul: "226.8", Aug: "225.3", Sep: "219.3", Oct: "246.9", Nov:
"227.7", Dec: "181.2"},
{Series: "Series 2", Period: "2003", Jan: "222.6", Feb:
"213", Mar: "209.1", Apr: "225.3", May: "", Jun: "", Jul: "", Aug:
"", Sep: "", Oct: "", Nov: "", Dec:""}
]);

Never mind! I found the "secret": use multiple chartseries
tags within a cfchart tag.

Similar Messages

  • Problem with Bar Chart using Date Data

    I am trying to make a simple horizontal bar chart as a Gantt chart.  I am trying to set the min and max for the X axis but it is acting strangely. As you can see in the screenshot below, I set the min to 1/1/2000 but the chart uses 9/28/2011.  Similar problem with the max setting.  Am I doing something wrong here? Can anyone duplicate this? Anyone have a solution other than this workaround I am now using (which I assume will break my chart once Apple fixes this problem)?

    BadUnit,
    I assume Numbers, like me, is confused why you would set min/max limits that do not include the data?
    I do get the same result as you when I enter the time range for the chart as 1/1/2000 thru 1/1/2004.
    I even tried making a separate table for the chart:
    There is definitley a problem.
    When I enter, what I think are reasonable,  min and max dates for the chart
    min = 1/1/2013
    max = 12/31/2015
    The chart adjusts like this:

  • Creating Bar Charts using Java and Display in jsp

    Hi..Is it possible to create a servlet that processes data from database and display the values as Bar Charts in jsp pages. If its possible, is there any examples on how to achieve that?

    I don't get it. You already know what needs to be done to solve your problem, the only thing you are missing is the HOW. That's the easy part, if only you break down what you have to know:
    1) how do I show an image on a website (this is a basic HTML question actually, not actually related to servlets/JSPs directly)
    2) how do I fetch the path from a database (JDBC question) so that I can use this path to link to my image on disc
    So what is preventing you from figuring out how to do these two simple tasks? Some clever google searches should give you all the information you need in no time.
    by the way: are you sure that you need to store these paths in the database? Is this part of some file upload component?

  • HOW TO creat  BAR CHART using ABAP Programming

    DEAR ALL,
    I want some help as to how to creat GRAPHICAL display using ABAP programing (BAR CHART) any sample codes Example will be very helpful.
    Regards,
    VJ

    On earlier versions, you can do something like this.
    [code]
    REPORT ZRICH_0005 .
    DATA: BEGIN OF ITAB_DATA OCCURS 0,
               DATANAME(15),
               QUANTITY1 TYPE I,
               QUANTITY2 TYPE I,
               QUANTITY3 TYPE I,
          END OF ITAB_DATA.
    Data: BEGIN OF ITAB_OPTIONS OCCURS 0,
               OPTION(20),
          END OF ITAB_OPTIONS.
    ITAB_DATA-DATANAME = 'Maple'.
    ITAB_DATA-QUANTITY1 = 5500.
    ITAB_DATA-QUANTITY2 = 6200.
    ITAB_DATA-QUANTITY3 = 5900.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Oak'.
    ITAB_DATA-QUANTITY1 = 3500.
    ITAB_DATA-QUANTITY2 = 5200.
    ITAB_DATA-QUANTITY3 = 4400.
    APPEND ITAB_DATA.
    ITAB_DATA-DATANAME = 'Cherry'.
    ITAB_DATA-QUANTITY1 = 1800.
    ITAB_DATA-QUANTITY2 = 2200.
    ITAB_DATA-QUANTITY3 = 1900.
    APPEND ITAB_DATA.
    CALL FUNCTION 'GRAPH_MATRIX_3D'
         EXPORTING
              COL1        = 'Jan'
              COL2        = 'Feb'
              COL3        = 'Mar'
              TITL        = 'Lumber Usage in $'
         TABLES
              DATA        = ITAB_DATA
              OPTS        = ITAB_OPTIONS
         EXCEPTIONS
              OTHERS      = 1.
    [/code]
    Regards,
    Rich Heilman

  • Displaying BAR chart using JSPChart , Sysbase database, Jrun server

    I would like to explain my requirements to you.
    1. I will be displaying a Exponential bar chart. The length of bar chart is obatined from Sybase database.
    2. This chart should be dynamically created depending on the value on the database and x -axis is exponential.
    This will be displayed on a HTML page.
    Hope this is clear. Basically, I want to show the database values using a chart on a Web Page.
    Can this be done, if so, pl give me further info if possible.
    I have downloaded JSP chart from
    http://www.javaside.com/asp/menu_fr.asp?page=jspChart.shtml
    Pl reply ASAP.
    Thanks in advance

    Serious fraud allegations leveled against Elansoft, in the web pages: http://www.manero.org/weblog/archives/000083.html
    or
    http://archives.real-time.com/pipermail/cocoon-users/2003-March/031298.html .
    If the charges were not true, Elansoft might have angrily denied. Instead, Elansoft closed US office and ran from the law. If Elansoft continue to evade the laws, what kind of legal protection buyers could get from the legal system?
    These are credible charges, because, it is impossible to believe Agileblox could get more votes than OpenOffice (which has been downloaded by millions of users) and more votes than SVG-technology itself (which has support of tens of thousands of die hard developers, and many companies building products around the technology).
    In the news release, Pravin Raju, CEO, said Agileblox rated higher than products from Sun, Oracle and Macromedia:
    http://www.blonnet.com/bline/2002/10/11/stories/2002101101590900.htm
    The CEO may be ignorant enough to know, that all those products are well known and financially successful. There were hundreds of news article published in respected technology journals about each one of them. There are many developer groups (Ex: user-groups and discussion forums) about each of them. Each of these forums patronized by thousands of developers each month.
    Is there any detailed product review for Agileblox out there? How about any freelance discussion? May be too stupid to participate in technical debate? What about, at least one use case presentation from a �real- happy customer? The crooks committed fraud. Pravin Raju, CEO of Elansoft, shamelessly claimed his product had rated higher than many respected products. What a moron?
    Look at Agileblox documentation and flowchart. Does the flowchart make any sense, or look like work of a software guy? Does Elansoft know any thing about product development? Why they have not able to release any upgrade to Agileblox for so long? Who developed Aileblox? Are they still working at Elansoft?
    P.S: Please send any information and names of the players of the Award scam to: [email protected]

  • How to plot bar chart using iReport with Struts 2

    Hi All
    Im working on iReport 3.5.1 to generate jasper report for our java enterprise application. Here, I have no problem, when im generating simple report[without any chart]. When i try to add a bar chart to jasper report, i coudnt get the exact chart what i wanted, im just getting some ridiculous chart which is exactly wrong, i guess the problem is with the data given to plot the chart. Do, anybody know how to transport data to plot the bar chart in iReport. For Simple chart im using javabeans to generate report, but for chart, how it should be?
    Thanks in advance
    Thanks and Regards
    Baskaran
    Edited by: Baskaran on May 22, 2009 12:36 PM

    jxl does not support create chart from scratch.
    Maybe you can do it by using excel template:
    define a chart in the sheet,using definedName or fixed range as chart data source.

  • Create Pie Chart and Vertical bar chart using report builder 3.0 with sharepoint custom list

    Hi All,
    I have a client requirement to create reports which should show the graphical representation of SharePoint Custom List data. The reports are Month wise and YTD. Also i have to create dashboard.
    For creating reports, i have heard about Report Builder and SSRS. I have SQL server 2008r2 and installed report builder 3.0 but i am not aware of creating reports(KPI, Pie Chart, Vertical bar, etc.,) with sharepoint customlist.
    Can some one please help me on this.
    MercuryMan

    Here is some information about using the SharePoint List Data source with SSRS/Report Builder/BIDS:
    http://www.infotoad.com/blog/post/2012/10/11/using-a-sharepoint-list-connection-type-as-a-data-source-for-reporting-services.aspx
    http://technet.microsoft.com/en-us/library/ee633650.aspx
    http://www.codeproject.com/Articles/24469/SQL-Reporting-Services-data-from-SharePoint-lists
    Trevor Seward
    Follow or contact me at...
    &nbsp&nbsp
    This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.

  • How to save the edited datagrid using array collection?

    <?xml version="1.0" encoding="utf-8"?>
    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"
                        xmlns:s="library://ns.adobe.com/flex/spark"
                        xmlns:mx="library://ns.adobe.com/flex/mx"
                        title="demo2">
              <fx:Declarations>
                        <!-- Place non-visual elements (e.g., services, value objects) here -->
              </fx:Declarations>
              <fx:Script>
                        <![CDATA[               
                                  import mx.collections.ArrayCollection;
                                  import mx.events.FlexEvent;
                                  import spark.components.gridClasses.IGridItemEditor;
                                  import spark.components.gridClasses.IGridItemRenderer;
                                  import spark.events.GridItemEditorEvent;
                                  [Bindable]
                                  private var myDP:ArrayCollection = new ArrayCollection([
                                            {label1:"Day1 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day2 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day3 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day4 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day5 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "},
                                            {label1:"Day6 ", label2:" Sub1", label3:"Sub2 ", label4:"Sub3 ", label5:"Sub4 ", label6:"Sub5 ", label7:"Sub6 "}
                                  protected function myDG_gridItemEditorSessionSaveHandler(event:GridItemEditorEvent):void
                                            // TODO Auto-generated method stub
                                  protected function button1_clickHandler(event:MouseEvent):void
                                            // TODO Auto-generated method stub
                                            navigator.popView();
                                  protected function button2_clickHandler(event:MouseEvent):void
                                            // TODO Auto-generated method stub
                                            myDG.editable=false;
                                            myDP
                                  protected function myDG_exitStateHandler(event:FlexEvent):void
                                            // TODO Auto-generated method stub
                        ]]>
              </fx:Script>
              <s:DataGrid id="myDG" x="10" y="45" width="460" height="240" dataProvider="{myDP}"
                                            editable="true" exitState="myDG_exitStateHandler(event)" fontSize="11"
                                            gridItemEditorSessionSave="myDG_gridItemEditorSessionSaveHandler(even t)"
                                            rowHeight="30" variableRowHeight="true" selectionMode="singleCell" >
                        <s:columns>
                                  <s:ArrayList>
                                            <s:GridColumn dataField="label1" headerText="day" editable="false" />
                                            <s:GridColumn dataField="label2" headerText="9-10am"/>
                                            <s:GridColumn dataField="label3" headerText="10-11am"/>
                                            <s:GridColumn dataField="label4" headerText="11am-12noon"/>
                                            <s:GridColumn dataField="label5" headerText="1-2pm"/>
                                            <s:GridColumn dataField="label6" headerText="2-3pm"/>
                                            <s:GridColumn dataField="label7" headerText="3-4pm"/>            
                                  </s:ArrayList>
                        </s:columns >
              </s:DataGrid>
              <s:Button x="404" y="10" width="53" height="27" label="Back" click="button1_clickHandler(event)"
                                    fontSize="13"/>
              <s:Button x="24" y="10" width="56" height="27" label="Save" click="button2_clickHandler(event)"
                                    fontSize="14"/>
    </s:View>
    please help me with this code...i dontknow how to save the data edited in the datagrid back to my arrayollection!!!

    please help with this......

  • Conditionally Changing Colors of Bars in Chart Using BI Templatet Builder.

    How to change color of bars in Bar Chart using BI Publihser Template Builder?
    Ex : We have conditions such as When Revenue is between 2000 to 4000 Color of Bar should be red, If Revenue is Higher then 4000 then color of Bars should be Green.
    Please reply!!

    Go to insert menu and choose condetional foram ans set appropreate settings in your template bilder.
    Venkat v

  • 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

  • Oracle graphics(Bar chart) error

    Hi All,
    I have developed a Bar chart using graphics builder 6i and it is running but when the y axis value larger (say 9999999) then axis lable getting symbol as star(*). Also Bar column Label getting symbol as star(*). What is the problem? Is it possible to show the higher value like 1000->1k,400000->400K in axis label and in Bar field label and how? Please help ASAP.
    Thanks in advance.
    Regards
    Sanjit Kumar Mahato

    Hi,
    Try SPRO. Do not know the path by heart...
    Basic systems -> Frontend services -> Graph/Net
    Best regards,
    Guillaume

  • Generating JFreeChart Bar chart in jsp

    Hi Everyone,
    I have never worked with charts earlier. I created one demo for generating a bar chart using a java class. I am using awt classes here. Chart was rendered successfully on running this java class. My problem is i want to integrate this class with a JSP, by involving servlets. I tried to do it many a times now but yet not successfull.
    My requirement is, on the hit of 'generate chart' in one jsp, bar chart should be rendered.
    Can somebody plz help???
    Thanks in advance

    Has no update on the problem mentioned. However, you can try elegantj charts. It creates customized, dynamic charts in few minutes.
    Link: www.elegantjcharts.com

  • Bar chart in jsp

    Hi,
    I want to develop bar charts using JSP.
    Can you please tell me the simplest way so that I can develop bar charts.
    Thanks

    If you want, you could draw the charts using the HTML5 canvas tag with some JavaScript to draw the chart on the canvas. Though if I remember correctly, to get this to work in IE6, you need to include the excanvas script on your page; not sure about IE7 and IE8.
    I make no claims as to whether this is a good approach for what you are doing, but it's another option.

  • Showing 0 value in vertical bar chart

    Hi,
    is it possible to show the 0 value in a bar chart using Show data labels "Always"? By default it is suppressed.
    Zero is a success value in quality reporting and my clients want it to be visible, so they do not confuse it with "no data delivered". Is there any way to highlight Zeros in a bar chart?
    Mny thx Thomas

    We had the same issue and used a work around. Use case when value = 0 then 'Some value of choice' and it will be seen on the chart.
    Let the client know that 'Some value of choice' on the chart means 0. Sounds ridiculuos, but we did not find any other alternative.

  • IGS Stacked bars chart

    Hi,
    I am trying to create a Stacked Bar chart using IGS(Internet Graphics service) Chart Interpreter. 
    By default it display 5 intervals  with the ranges (0 - 20 - 40- 60 -80-100).
    I want to display 10 intervals with the ranges ( 0 - 10- 20-30-40-50-60-70-80-90-100)
    How do i changes Intervals on the X-axis?
    I am try to build upon the example program "GRAPHICS_IGS_CHART_TEST" we have in ECC 6.0
    Any solutions/hints would be helpful.
    Thanks
    Shekar

    Hi,
    to have the desired values in the axis you can set the stepsize of the value axis line to 10. The resulting XML snippet for the chart customizing would look as follows.
    <ValueAxis id="ValueAxis1">
    <Line>
    <MajorTickCalculation>ManualStepsize</MajorTickCalculation>
    <NumberMajorTicks>10</NumberMajorTicks>
    </Line>
    </ValueAxis>
    I would recommend to use the chart designer to create this setting. Value Axis --> Line --> Major Ticks. Here set Major Tick Calculation to Manual Step Size and the Number to 10.
    Best regards
    Matthias

Maybe you are looking for

  • Authentication Thru an external LDAP

    Hi I'm using Oracle database 10g r2. We have Tivoli Access Manager and Tivoli Identity Manager. I don't want migrate to OID. I'd like to provide authentication to Oracle, Thru our existing LDAP. Is this possible ? if yes, is there a documentation som

  • ITunes 10.1.0.56 update kills network interface - Windows 7

    Every time I attempt to install 10.1.0.56, it kills my wired network interface (desktop, so only interface) and hangs mid-installation. There are no errors presented. To regain network connectivity, I have to perform a System Restore. At this point,

  • Urgent Help; Everyone has access to restricted rooms

    Hi Everybody, I need some urgent help. I have created some collaboration rooms based on a restricted room template and everyone seems to have access to the room. It is behaving as if it is a public room. Now we are just a couple of days from go-live

  • Can not remove standby log file, please help

    Hi, My v$logfile GROUP# STATUS TYPE MEMBER IS_RECOVERY_DEST_FILE 3 ONLINE /u01/app/oracle/oradata/orcl/redo03.log NO 2 ONLINE /u01/app/oracle/oradata/orcl/redo02.log NO 1 ONLINE /u01/app/oracle/oradata/orcl/redo01.log NO GROUP# STATUS TYPE MEMBER IS_

  • Resizing to make an object in image a specific size

    I've been using PS since version 3 but have never been able to find an easy way to resize an image so part of the image is a specifice size.  For example.. I have a picture of car and I want the car to be exactly 8" from the back to the front but kee