Regarding Bar Chart

Hi ,
    This is prasad new to sap xmii.In Xmii i want to display two bar charts.
First bar chart should display by selecting the dropdown.It works fine by displaying the chart.And the next bar chart should display on clicking the Units of first bar chart.
But it is not happening like that.To display the second one first we have to click the legend on the right side of the chart and then clicking on the chart displays the second chart.
I would like to display the second bar chart by clicking the first bar chart  unit directly without clicking on the legend.
Can any one give the necessary direction on this will be helpful for me
Thanks,
Prasad.

In situations like this, since the ChartSelectionEvent in the chart area is visually independent of the SelectionEvent in the legend, I prefer to have both events declared.
In the ChartSelectionEvent function you can use the .getLastSelectedTag() method to determine which associated legend 'pen' the user selected by clicking on the bar.  You can then use this number to call the .setSelectedPen(iPen); method, which will do two things:  highlight the legend item for the bar they've selected and also fire the SelectionEvent for the iChart.
By doing this you have script access to everything you need about the particular bar they've clicked as well as the pen related information.  It also provides the visual correlation so that the user doesn't get confused by clicking on a bar in the chart for drill-down but still seeing the legend indexed to a different pen.
fun ction BarChart_ChartSelected() {
     var myChart = document.BarChart.getChartObject();
     var selPen = parseInt(myChart.getLastSelectedTag());
     if (selPen > 0) {
          myChart.setSelectedPen(selPen);
Regards,
Jeremy

Similar Messages

  • Question regarding 3-D stacked bar chart

    Hi All,
    I'm creating a report that has a view of a horizontal stacked bar chart. I was wondering if there's a way to portray that stacked bar chart as a 100% stacked bar chart like in ms excel?
    Thanks,
    Wayne

    Hi Wayne,
    I'm not sure if I understand your query correctly but I'll have a go at answering your question. I'm guessing that you have a horizontal bar chart that looks something like this, even after you've indicated that you want it to be a stacked chart -:
    |{color:#ff0000}@@@{color}
    |{color:#008000}#########{color}
    |{color:#ff00ff}++{color}
    |{color:#0000ff}===={color}
    However, you want it to look more like this -:
    |{color:#ff0000}@@@{color}{color:#008000}#########{color}{color:#ff00ff}++{color}{color:#0000ff}===={color}
    For the purposes of the example, let's assume you are using two fields for the bar chart - Account Type and *# of Accounts*. By default, your chart options would be set such that Account Type is the value used for the Y axis and *# of Accounts* is the value used for the X axis. Indicating that you want a stacked graph results in the first graph example I listed above. However, if you indicate that Account Type is the value to be used for the measure labels and that there is no value for the Y axis, then a stacked graph will look like the second graph example I listed.
    Hope this helps to answer your question.
    Regards,
    Cameron

  • Code regarding Pie Chart, Bar Chart and Line Chart

    Anybody having code for Pie chart, Bar chart and Line chart.......?

    You may try jfreechart, jgraph,etc
    here is the link for more java graphics software : http://www.kidslovepc.com/graphic-design/graphic-design-softwares.php

  • Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Regarding Pages charts, when I try to 'build' a 3D chart all I get is little dots but not graphics.  No problems with 2D charts though. Guess my question is "Help?"

    Sorry for the delay getting back to this.
    Thanks to Fruhulda and Peter for their comments regarding the refusal of Pages to let me make 3D charts. 
    In answer to the questions put to  me in this regard :
    1. Pages version : Pages '09  v.4.1 (923)
    2. Mac O/S :          v.10.6.8 
    3. 3D chart :          Can't find a 'name', but upright bars with rounded corners ???
    4. Moved apps :    Not that I'm aware of!  All should be as installed off the disc.
    5. A note :              I have been able to create these in the past - related to a SW update? 
                          and ... can create these charts perfectly in Keynote (go figure).
    Thanks to all.
    CM

  • How to change the bar chart rendering image format in SSRS

    Hello all,
    I am working with SQL Server 2008 R2 and I have a SSRS bar chart report, when the report got rendered over online or if the take Export (PDF and PPT), the image is in png format always, which is taking too much of time to execute the report in case of large
    data.
    Can, It be possible that the rendered image is in jpeg format instead of png.
    If Yes, please share the appropriate steps to follow:
    Thanks in advance
    Pankaj Kumar Yadav-

    Hi Pankaj067,
    According to your description, you want to change the bar chart rendering image format as JPEG format when previewing the report or exporting to a PDF file .
    In Reporting Services, the chart rendering image format is PNG by default. It’s a by-design behavior. And it doesn’t open any API for us to change the image type when exporting a chart to a format. So in your scenario, your requirement can’t be achieved
    in Reporting Services currently. I would recommend you submit a feature request to Microsoft at this site:
    https://connect.microsoft.com/SQLServer. So that we can try to modify and expand the product features based on your needs.
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu
    Qiuyun Yu
    TechNet Community Support

  • Bar Chart- How to center graph lines

    I am very new to Xcelsuis and am fighting with someing that is easy to most, but driving me crazy.
    I have a Label Bar that poplulates a list box and when I click on an item in the list box the correct information appears on the bar chart.  The problem is that is is all pushed to the bottom of the graph.  I need it to space accordingly in the center of the graph. 
    Please know that I can have anywhere from 1 bar chart line or 40.
    Thanks in advance for your assistance.
    JP

    Hi JP,
    Have you tried the ignore blank cells in series and values options. These are on the behaviour tab.
    Regards
    Alan

  • SSRS Bar Chart grouping date series into Months, setting scaler start and end ranges

    I've been trying to solve this issue for a few days now without writing a sql script to create a "blank" for all of missing data points so that I get a bar for each month.  I have date series (by day) data points grouped by two items
    that creates a set of bar charts.  EG:  one chart per product in the tablix detail grouped to site level.
    My issue is I would like the start and end of the charts to be the same for all charts and the only way I get it to work is with a chart that continues to show each date on the chart. 
    EG:
    I have the graph start and end points set and scaling by month as I would like but each bar is a day instead of aggregating to a month level.   My issue I hope to find a workaround for is if I go to Category Groups and define the grouping
    to group with a year and month function the series is no longer treated as date data and I cannot control scaling.  It works fine if all months have activity, but I can't figure out how to always have all charts start at "May 2012" in this example. 
    The only start and end point that I've been able to get to work once doing this are integer based, eg normal start would be 1 for each graph, but 1 doesn't equate to the same month from chart to chart.
    I hope SSRS can provide the solution.  I do know I can write a query that creates a ZERO value for each month/product/site but I don't want to leave the client with a query like that to support.
    -cybertosis

    Hi cybertosis,
    If I understand correctly, you want to display all month category label in the X-Axis. You have configure the Scalar Axis, however, it cannot display the requirement format.
    In your case, if we want the specific data format, we can configure Number property to set the corresponding Category data format. Please refer to the following steps:
    Right click the X-Axis, select Horizontal Axis Properties.
    Click Number in the left pane. Click Date option in the Category dialog box.
    Then, select Jan 2000 option.
    Please refer to the following screenshot below:
    If there are any misunderstanding, please feel free to let me know.
    Regards,
    Alisa Tang
    If you have any feedback on our support, please click
    here.
    Alisa Tang
    TechNet Community Support

  • SSRS - Report Builder 3.0 - Bar Chart

    Hi,
    I have Bar chart which shows number of items sold by Month , by year for the last two years
    My Query is something like
    Select Count(*) as NumOfItemsSold, Month(SaleDate) As MonthSold, Year(SaleDate)As YearSold From Sales where SaleDate in (DATEPART(Year,GETDATE()), DATEPART(YEAR, GETDATE())-1) GROUP BY Month(SaleDate), Year(SaleDate) Order BY Month(SaleDate), Year(SaleDate)
    THe Query works fine except for doesnt return any values for the months there are no sales and thus the bars doesnt show up in the chart. I want the chart to display 0 as Number of items sold and represent an empty space inthe chart. I am not sure how to
    do that.
    The Second Question is that I am bleto display the month name Abbreviated By usign the Expression MonthName(Fields!MonthSold.Value , TRUE) and Setting the interval  = 2 so my Chart would start showing values  feb, Apr, Jun etc ...
    I want to display the values starting from Jan with interval =2 for example Jan, Mar, May ...  not sure how to achieve that.
    Please let me know of any questions .
    Any help will be greatly appreciated.
    Thanks,
    Chaitanya

    Hi Chaitanya,
    To display the months that has NULL values, modify the Expression in the Values area of the chart to:
    =SUM(IIF(Fields!NumOfItemsSold.Value IS NOTHING, 0, Fields!NumOfItemsSold.Value))
    To make the labels on the horizontal axis start with January and an interval of two months, do the following steps (assuming that you have set the expression for category group to =MonthName(Fields!MonthSold.Value)):
    1. Click on the category axis, press F4 to highlight the Properties pane.
    2. Under Interval item, set its properties as follows:
        Interval: 2
        IntervalOffset: 1
        IntervalOffsetType: Number
        IntervalTpe: Number
    3. Under Sale item, set its properties as follows:
        Minimum: 0
        Scalar: True
    The following screenshot is for your reference:
    Regards,
    Mike Yin
    TechNet Community Support

  • How to draw cumulative line graph over the stacked bar chart?(SSRS)

    Hello, 
    I need your help to draw a cumulative line graph over this bar chart. 
    I need your help to draw a cumulative line graph over this bar chart in SSRS.
    The dimension (Category Group) is "Hour" in this case. and expression is sum of two distinct values like 'Y' and 'N' in Activity column(Series Groups). The sum(Activity=Y) in green color and sum(Activity='N') in Red color.
    I require to draw a cumulative line graph in this same chart, that should give the result of cumulative Sum(Activity) for each hour?? I mean sum of (Y+N) for each hour and that should be cumulative over the hour.
    I mean sum of (Y+N) for each hour and that should be cumulative over the hour.
    SSRS Version details:
    Microsoft SQL Server Reporting Services Designers 
    Version 10.50.1600.1
    --Siva

    Hi Siva,
    It seems that you need to verify your email address to post images, etc
    Besides,  Microsoft® SQL Server™ 2008 Reporting Services: Step by Step is a good choice to you. With STEP BY STEP, you work at your own pace through hands-on, learn-by-doing exercises. A companion CD includes data sets and sample code. You can download
    it from this link http://my.safaribooksonline.com/9780735626041 Click the Extras, you can get the samples and database from Supplemental Content.
    And there are vast of valuable articles and SQL Server Reporting Services Books Online in MSDN ,you can click these link to begin your learning journey, SQL Server Reporting Services 2008 Books Online:
    http://msdn.microsoft.com/en-us/library/ms159106(v=SQL.100).aspx 
    Besides these, there are still many valuable videos in Microsoft Webcast, click this link
    https://msevents.microsoft.com/cui/SearchDisplay.aspx?culture=en-US#culture=en-US;eventType=0;sortKey=;sortOrder=;pageEvent=false;hdnInitialCount=;searchcontrol=yes;kwdAny=Reporting%20service to register with a windows live ID, then download the ones you
    want.
    Hope this helps.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Horizontal Bar Chart and Overlaying Line Chart

    I am using SSRS 2008 and developing my reports in BIDS.
    I have a report with two data points. I want to chart the first as a bar (horizontal) chart and then the second as an overlaying line chart.
    I created both data series, originally, as a bar chart. I have clicked on the second series in the "Drop Data Fields Here" area and changed the chart to a line chart. When I do that, it changes both series to a line chart.
    However, if I use the column (vertical) chart for the first series, it will let me make the second one a line chart.
    Is this a limitation of SSRS 2008? Can I not have one data point be the horizontal bar chart and the second one a line chart?
    If so, are there any suggestions how to get around this?
    Thanks.

    Both charts for SSRS 2005/2008 are very limited when it comes to horizontal charts and are infact supporting only left-to-right bar charts, with no ability to combine them with other charting types (lines, areas, points etc.). For a SSRS charting solution that supports all types of charting type combinations in left-to-right and right-to-left horizontal fashion you can use Nevron Chart for SSRS - www.nevron.com. Besides a huge number of charting types and subtypes (most of which are not available in the MS Chart for SSRS 2008) it also provides better image quality in 2D and 3D modes, more settings, has support for rich text formatting in texts, has image filters, ability to customize via C# code and implements many more large and small charting related details.
    Best regards,
    Crank

  • Problem with Stacked Bar Chart

    I have a problem with a stacked bar chart in Numbers 09. My chart is a single series with 6 categories. All of the categories have different values. The first 5 categories display correctly. However, the last category does not display in the color its supposed to, but rather shows up as white/background instead of the grey color shown on the legend. However, the value label is displayed in the proper place.
    When I select other chart types (pie, regular bar, or regular column) the category shows up like it's supposed to.
    This is kind of annoying since I would rather use stacked bar instead of a pie chart. Is there an upper limit on the number of values it can display as a stacked bar chart? Is this just a bug? Thanks!

    Here's my result with six values in a single series. I double clicked the last bar to change its colour from the default grey (which was visible) to magenta.
    Numbers 2.0.3, iBook G4, OS X v10.4.11
    (Shot in the dark:) Try double clicking the value label, then changing the order position of this item.
    Regards,
    Barry

  • Ecelsius data from QAAWS do not fit right format to project a bar chart.

    Hello team,
    Need some help in formating Xcelsius data from Qaaws link.
    Here is what i have:
    I imported data in to Xcelsius using QAAWS link.
    What i need to do is to project a bar chart with filters. 'i.e' chart should be projected based on the filter output.
    The problem is that when i pick the data through filters it selects just one row.
    But i need multiple rows, 'i.e'  for every year.  (as i'm projecting Yearly data. Vs HeadCount)
    Excel file has got 4 columns, Project name, Role Name, Year, Head Count.
    Filters are based on project type and Role type.
    'i.e'  when i select project name and role name using filters : i want the filters to pick the matching data in excel (Headcount) for every year, however it picks for just one single year.
    Sample Excel data:
    TeamName     RoleName     CalendarYear     HeadCount
    engg                ModDel            2007                15
    ProjOff             CV                  2007                 22
    SCM                 CV                  2008                 42
    site                   CV                  2008                 31
    ProjOff             HP                   2008                 22  
    PCM                  MM                  2009                 46
    Sore                 ZP                   2009                 22
    Engg                 CV                  2010                 19
    ProjOff             CV                  2010                 26
    Any Ideas to develop this formatting would be greatly appreciated.
    Thank you.

    Anil, 
    Thank you for a quick reply.
    After i tried the combo box instead a filter i got multiple rows picked up, but how will it work for more than one combo box.?
    I actually need 2 to 3 filters or combo boxes here, which can pick the data from Xcelsisus and output multiple rows on those filtered conditions, (just like filters, matching rows of input but output multiple rows )
    'i.e' Combo boxes are displaying output separately ('i.e' both combo boxes are not in sync) unlike filters 
    Any ideas on this issue, Let me know if i do not make myself clear here.
    Appreciate your help.
    Regards
    Ravi

  • Bar Chart with Drill Down

    Hello,
    I have BI Publisher 11 and BI Desktop version installed.
    I created a Bar chart thriugh RTF template and uploaded, its working fine.
    I want to create a drill down on each bar in the chart, which will allow me to pass respective value and open a detail report for that Bar value.
    Has anyone tried it?
    Any pointers would be highly appreciated.
    regards
    Nikhil

    Hi Runali,
    Sorry for late reply,the issue was not solved .
    Got another issue in BI launch pad .
    one Webi report migrated from R2 environment to BO 4.1.when open that report in BI launch pad
    working perfect but when report was edit in the query level and run the all queries its asking context selection
    If i selected all the context and run all the queries then again getting another issue.
    Why its asking Query Context in Query prompt level?
    Thank you
    Sudhakar M

  • Bar chart with current date in X axis

    Hello
    I have attached a vi that I hoipe somebody can help with.
    If you look at the vi, there are two bars showing.
    1.How can I attach the current date to the X axis.
    For instance.....suppose the first bar (far left) was produced with data from yesterday...then the X axis would indicate yesterdays date.
    The next bar was produced from data obtained today, so would show todays date.....etc
    An array of dates is not suitable, as no prior date knowledge is assumed......just the current date when the bar was graphed.
    2. Can the date be vertical....or even fancier....on a 45 degree slope, upwards and to the right
    Thank you and best regards
    Ray
    Solved!
    Go to Solution.
    Attachments:
    Bar chart.vi ‏16 KB

    Hi, this will plot what ever data you got with the current date on the X Axis. But remember that since this is a graph, any new value plotted will erase the previous one. Dont have LabVIEW 9 otherwise would have checked your VI out. This plots each value with the current date.
    LabVIEW 8.2,8.6,2009...still learning
    Attachments:
    Date Plot.png ‏16 KB

  • SVG CHart error ORA-20001 with Stacked Bar Chart HTML DB 1.6.0.00.87

    Hi,
    during I put a How-To into execution (How To Create a Stacked Bar Chart) I'll get the following error code:
    SVG Chart error:ORA-20001:line_Chart error:ORA-20001:
    get_data error:ORA-20001:Parse error:ORA009
    (see http://www.oracle.com/technology/products/database/htmldb/howtos/index.html)
    This Situation occurs when i add a second series to the
    chart. The first series works fine. I've used the following SQL-Statement:
    select null l, sales_month, revenue from (select to_char(o.order_timestamp,'Mon YYYY') sales_month, sum(oi.quantity * oi.unit_price) revenue, to_date(to_char(o.order_timestamp,'Mon YYYY'),'Mon YYYY') sales_month_order from DEMO_PRODUCT_INFO p, DEMO_ORDER_ITEMS oi, DEMO_ORDERS o where o.order_timestamp <= (trunc(sysdate,'MON')-1)and o.order_timestamp > (trunc(sysdate-365,'MON'))and o.order_id = oi.order_id and oi.product_id = p.product_id and p.category = 'Audio' group by to_char(o.order_timestamp,'Mon YYYY') order by sales_month_order);
    Please help.
    Regards
    Detlev

    Well,
    I've just been struggling for a couple of hours with a cluster bar chart giving the same problem.
    The problem is definitely with "ORDER BY".
    I guess the graphing chart is taking the sql query as a string and then does some other manipulation on it which ends abnormally when you include the order by clause.
    I presume that if you embed the query in a
    SELECT * FROM (<actual query with order by>)
    it might mitigate the problem.
    Bye,
    Flavio

Maybe you are looking for

  • Images on a website don't show, while they do in Safari

    This webpage shows a bunch of small graphics, connected by lines. The content does not show at all in Firefox 4 and the problem started showing in the last two Firefox 3 updates. Safari loads the page no problem. I do use the noscript plugin, but the

  • Using counter (6024E DAQ STC)

    Hi everyone, i'm very new to Labview and what i want to do is very simple.....but i can't make it work. I'm trying to count events from an external TTL signal. I have loaded Count edges(DAQ STC).vi. I haven't changed anything in the default parameter

  • Email with attachement as pdf of submitted form

    Hi all, Can anyone suggest me how to get an email as an acknowledge ment with the submiteed form as an pdf format.? I want to get an acknowledgement mail after submitting the form through the work space.. and email should contain the submitted form a

  • PROXY  RELATED

    hi frens , i have a scenario..plz help me out regarding Actually the motive is to post the data from BAPI_ BUPA_address_getDETAILS to a file on ur  local ftp server. the input parameter for bapi is 'businesspartner' = 5652626 BAPI is in the other sap

  • Re: Find Host Name thru Forte

    At 1:42 PM 5/21/96, <@ig4.att.att.com:[email protected]> wrote: Hi, What is best way to find Hostname under forte on Solaris 2.X platform within Forte? Thanks in advance, [email protected] one quick way would be to issue a RunCommand with the command