I how to restrict in bar chart y axis repeated values

Hi,
Why Y-axis values reapeating like 0 0 1 1 2 2 3 3 when search results gives single bar.
I need show always single values like 0 1 2 3 4.
How to reduce bar size if get only one value single bar occupies whole chart.
thanks
Nr

I know this is a really old question but ...
I thought I'd provide a little insight since I had the same problem. If, as in the case described, the values are specified to have 0 decimal places, and the range of the data is, say, between 0 and a small number then the Y scale/range may be 0.0, 0.5, 1.0, 1.5, 2.0, ... But at 1 decimal place, these may display (truncated?/rounded) as 0, 0, 1, 1, 2, ... The easy solution would be to specify 1 (or more) decimal places. However, the easy solution has other effects. My stacked bar chart was very dense with only enough room to show a single digit for the Values. This became unreadable when the value 1 (one) was replaced by 1.2 and 2 by 2.3. So I unchecked display Values. (Why couldn't the values display staggered like labels do so they they don't overlap?)
So even though, I had intended to display "values," I had to give that up when I showed additional decimals in the labels.
Howard

Similar Messages

  • How to restrict the user to enter only numeric values in a input field

    How to restrict the user to enter only numeric values in a input field.
    For example,
    i have an input field in that i would like to enter
    only numeric values. no special characters,alphabets .
    reply ASAP

    Hi Venuthurupalli,
    As valery has said once you select the value to be of type integer,once you perform an action it will be validated and error message that non numeric characters are there will be shown. If you want to set additional constraints like max value, min value etc you can use simple types for it.
    On the project structure on left hand side under local dictionary ->datatypes->simple types create a simple type of type integer
    The attribute which you are binding to value property ;make its type as simple type which you made
    Hope this helps you
    Regards
    Rohit

  • How to restrict user's inputs to F4 help Values?

    Hi Experts,
    I have created a custom infotype where i have a custom search help created for one of the fields, the problem is that even if i give values other than the values in the search help the infotype doesnt throw any error and gets saved.
    So can anybody explain how to restrict the field only to search help values.
    Thanks,
    Revanth.

    Hai.
    Check the example it may help you.
    See the following ex:
    TYPES: BEGIN OF TY_MBLNR,
    MBLNR LIKE MKPF-MBLNR,
    END OF TY_MBLNR.
    DATA: IT_MBLNR TYPE STANDARD TABLE OF TY_MBLNR WITH HEADER LINE.
    data: it_ret like ddshretval occurs 0 with header line.
    At selection-screen on value-request for s_mat-low.
    Select MBLNR from mkpf into table it_mblnr.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    DDIC_STRUCTURE = ' '
    RETFIELD = 'MBLNR'
    PVALKEY = ' '
    DYNPPROG = ' '
    DYNPNR = ' '
    DYNPROFIELD = ' '
    STEPL = 0
    WINDOW_TITLE =
    VALUE = ' '
    VALUE_ORG = 'S'
    MULTIPLE_CHOICE = ' '
    DISPLAY = ' '
    CALLBACK_PROGRAM = ' '
    CALLBACK_FORM = ' '
    MARK_TAB =
    IMPORTING
    USER_RESET =
    TABLES
    VALUE_TAB = IT_MBLNR
    FIELD_TAB =
    RETURN_TAB = IT_RET
    DYNPFLD_MAPPING =
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    IF SY-SUBRC = 0.
    read table it_ret index 1.
    move it_ret-fieldval to S_mat-low.
    ENDIF.
    Go through the test program.
    REPORT Ztest_HELP .
    TABLES : MARA.
    SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    PARAMETERS : P_MATNR(10) TYPE C.
    SELECTION-SCREEN END OF BLOCK B1.
    DATA : BEGIN OF ITAB OCCURS 0,
    MATNR TYPE MATNR,
    END OF ITAB.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR P_MATNR.
    SELECT MATNR
    FROM MARA
    INTO TABLE ITAB
    UP TO 10 ROWS.
    CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
    EXPORTING
    RETFIELD = 'MATERIAL NUMBER'
    DYNPPROG = SY-REPID
    DYNPNR = SY-DYNNR
    DYNPROFIELD = 'P_MATNR'
    VALUE_ORG = 'S'
    TABLES
    VALUE_TAB = ITAB
    EXCEPTIONS
    PARAMETER_ERROR = 1
    NO_VALUES_FOUND = 2
    OTHERS = 3. 
    Regards.
    Sowjanya.b.

  • OBIEE: How to sort a bar chart by a measure not displayed in the chart?

    I have a table with OEM sales volume comparisons between two periods, current year and previous year. I have calculated a "VOLUME CHANGE" measure by subtracting last year's volume total column from this year's volume total column, and would like to display the resulting VOLUME CHANGE column in a horizontal bar chart.
    However, I want the bar chart sorted in descending order by the sales volume total column rather than the value of the calculated "VOLUME CHANGE" that is displayed.
    Can someone help me make this happen?
    In Answers I can make a bar chart sort according to any sort applied to a measure IF YOU INCLUDE THE SORTED MEASURE IN THE CHART, but I can't readily see how to do this if you wish to only include one measure in the chart but sort it by another measure from the same table.
    Help would be appreciated.
    Thanks.

    Well, we have some kind of disconnect.
    I see that the first value on the horizontal axis will supply the sort. The sort depends on the default, or whatever sort you have set on the column in the Criteria tab.
    But if I remove that measure from the chart, I lose the sort and it defaults back to sorting by BRAND, alphabetically.
    I can't see any options for hiding the measure in the chart itself and preserving the sort by the hidden measure. I know how to do that quite easily in Tableau, but I can't find it here. In the Criteria tab when I go to "column properties" the only option tabs I see are "Style", "Column Format", "Data Format", "Conditional Format" and "Interaction" and none of those offer any option for hiding the column.
    When you go to the results tab and then edit the layout of the resulting data table, you do get options to hide columns in the results table. But they still show up by default when you create a chart based on the table. From the editing options for the chart itself I see no option for hiding any of the measures, only the option to drop the measures down to the "Excluded" box, at which point they a cleared from the chart along with any associated sort settings.
    Is there any way to include a screen shot with the post?
    Can someone be more specific about where the menus and options are to make this happen?

  • How to create stack bar chart on answers that shows % and counts?

    Hello guys
    I currently have a table that have several columns, each column represent one product name, and one column name "units" indicating how each product is sold...
    The requirement is to create a chart view with stack bar that shows the percentage of each product''s unit sales.
    Now we are discussing whether we should customize the table to consolidate all these product columns into one "product desc" column with all the product names as row in order to fulfill this requirement..
    PLease let me know whether this is needed or not... ALso, how would I be able to create stack bar charts that shows the total sales against each product sales in percentage and counts?
    Please let me know, I really appreciate it

    I tried to do this and was a bit successful. I used the paint catalog. Created a a request with 6 columns assuming units and dollars be stacked and Year ago units to be a line:
    Brand Units Dollars 0 Year_Ago_units 1
    Added a new request (Combined with similar request and selected paint subject area): Now in this request my columns are:
    Brand 0 0 Year_Ago_Dollars Year_Ago_units 2
    Assuming Year_Ago_Dollars be standard in your case.
    Created a chart view with brand and 1 on x axis and Units, Dollars, Year_Ago_Dollars on y axis and line as Year_Ago_units.
    Now able to see what I am expecting. May be you need to tweak a bit more according to your requirement.
    Let me know if this is of any help!
    Thanks.
    Edited by: Venkata on Sep 30, 2010 12:11 PM

  • 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

  • How to create a bar chart in java

    hi,
    i want to draw a bar chart in a java application can anybody suggest any package with all sufficient information to draw a chart
    manish

    using jfreechart, the code will be like this:
        public ChartPanel BarReport( int month, int year, String typeBarChart ) {
            JFreeChart chart1;
            DefaultCategoryDataset dataset = new DefaultCategoryDataset();
            dataset.setValue( 5, "Value", "Kobe Bryant" );
            dataset.setValue( 6, "Profit", "Kobe Bryant" );
            dataset.setValue( 9, "Value", "Paolo Maldini" );
            dataset.setValue( 7, "Profit", "Paolo Maldini" );
            dataset.setValue( 10, "Value", "Thierry Henry" );
            dataset.setValue( 8, "Profit", "Thierry Henry" );
            dataset.setValue( 9, "Value", "Maradona" );
            dataset.setValue( 5, "Profit", "Maradona" );
            dataset.setValue( 3, "Value", "Beckham" );
            dataset.setValue( 12, "Profit", "Beckham" );
            chart1 = ChartFactory.createBarChart3D( "Comparison between Salesman",
                    "Salesman", "Achievement", dataset, PlotOrientation.VERTICAL,
                    true, true, false );
            ChartPanel panel1 = new ChartPanel( chart1 );
            return panel1;
        }

  • How i can change bar chart color in runtime??

    i have a bar chart with red as a default color.
    <mx:BarSeries
    id="progressBar"
    yField="Task_Name"
    minField="Start_Date"
    xField="Progress_Date"
    displayName="Progress"
    >
    <mx:fill>
    <mx:SolidColor id="progressColor" color="red"/>
    </mx:fill>
    i want to give the user the option to change the color. i
    used the following code:
    progressColor.color = colorChooser.selectedColor;
    colorChooser is color picker components.
    but that doesn't work. it doesn't change the color. it just
    changes the tooltip border color of the bar chart.
    please help
    thanks

    hi Shafr
    beleive it or not, i got it using trial and error. i keep
    trying words in the function setStyle until the color changed. i
    dont know why it is not documented.
    var periodBarColor:SolidColor = new
    SolidColor(taskSchedColorChooser.selectedColor, 1);
    periodBar.setStyle("fill",periodBarColor);
    //where taskSchedColorChooser is colorPicker component. you
    can replace it by any color you want

  • Stacked bar chart x axis crunching up

    Post Author: Pranab
    CA Forum: Xcelsius and Live Office
    I have purchased Crystal Xcelsius Workgroup 4.5. I have created a dashboard in which I have used webservices call to get data from database.
    One of the three charts of my dashboard is a stacked bar chart. Now my problem is, when the webservice gets data and refresh the chart, the x-axis of it becomes squeezed and the main chart becomes very small. It becomes so in runtime. However in design mode i didnt notice such behavior.
    But same flash file s showing fine when I am using it somewhere else.
    I am facing big trouble, as I tried to search in web about this problem, but couldnt find such case.

    Post Author: amr_foci
    CA Forum: Xcelsius and Live Office
    my friend,, its a bug,
    (this happens when you make "ignore end blanks" for the chart)
    i was mailing the business objects crystal xcelsius support team about that bug and they told me that its a bug and it may take months to be fixed,, we are waiting...

  • How to set up gap on bar chart (Y-AXIS)

    I have a column graph that displays Month on X-AXIS and quantity of complaint on Y-AXIS.
    The quantity per customer can be different.
    Eg: Customer A can have value from 50 to 10000
    Customer B can have value from 0 to 5.
    The problem I have is:
    When it is customer A, it works well on Y-AXIS.  it shows 0, 1000, 2000.... 10000
    But, when it is customer B, it shows 0, 0.5, 1.0, 2.5, 3.0, 3.5 .... 5.0
    How can I get rid of the decimals?
    I have formatted the number to be without decimal.  But,  it is still showing 0,0.5, 1.0 etc.

    hi Shwu Hua Gan,
    what you need to do is to use 2 charts in conditionally suppressed sections. this is because the axis labels can not be formatted dynamically.
    so create a new section below the section where your chart is now, copy your existing chart and then format the scale in the new chart by right clicking on one of the Y axis values and choosing Data Y Axis Options. use the Scale & Numbers tab options to format the axis for this new chart.
    now you need to conditionally suppress the original section and the new section. you may want the original section to show up when the Y Axis maximum is going to be greater than 100 so your suppression formula would be something like
    maximum({your value field}, {your customer group field}) <= 100
    and the suppression formula for the second section would be something like
    maximum({your value field}, {your customer group field}) > 100

  • AnyGantt: How to set different bar color depending on data value.

    Need to have different colors for bars in a gantt resource chart.
    The color depends on certain data value not included in the visible part of the chart, so it must be provided 'extra' for the chart in some way without beeing visible.
    Have studied some examples but cannot figure out the mechanism for this, and the procedure to implement it.
    Any ideas?
    Apex 4.2.2
    Regards
    Per.

    Hi Per,
    You mention "+Among the samples I can see that it has been implemented, but not how.+" - in the Information region below the chart that Tony referred to (https://apex.oracle.com/pls/apex/f?p=36648:50) that I've stated the following:
    "The elements of the Timeline region have been customized via the Chart Attributes page, using the following settings: *Custom Colors*: #000000,#00FF00,#0033FF"
    So that's how I applied custom colours to that particular chart. However, that declarative option won't meet your requirements, where the colours you wish to apply are dependent on data not included in the chart series query. You mention "+Now, if I add another column to the statement I get a yellow error message telling that the statement is not valid.+". It is not possible to simply add an additional column to the chart series query. Each supported chart type expects the associated chart series query to use specific syntax - see About Creating SQL Queries for Charts in Chapter 10 of the APEX User's Guide, http://docs.oracle.com/cd/E37097_01/doc/doc.42/e35125/bldapp_chrt.htm#BCEIJJID.
    So to answer your question "+How to add the new value if not providing another column to the graph?+", if you wish to customise your chart to that extent, then you will need to use custom XML. Depending on what exactly you're trying to achieve, this may require the generation of custom data for your chart. If you edit your chart, and take a look at the Custom XML region, you'll notice a substitution string, #DATA#, towards the end of the XML. When a chart is rendered, we use the chart series query to generate the necessary XML to represent the data on the chart, replacing the string #DATA# with the actual XML. The format of the data XML generated for gantt charts uses a bar style called "defaultStyle", and this handles the default appearance of the bars in the timeline region e.g.
    <period resource_id="1" start="2009.03.21 00.00.00" end="2009.09.21 00.00.00" style="defaultStyle"/>You'll see that the 'style="defaultStyle" ' attribute of the data corresponds to a segment of XML outlining what that style is e.g.
    <period_style name="defaultStyle">Now take a look at the Bar Style in Resource Project example in the AnyChart online documentation http://www.anychart.com/products/anygantt/docs/users-guide/bar-style.html#bar-style-application-resource-project. In that particular example, a number of different bar styles are used i.e.
    <periods>
      <period resource_id="server_1" start="2008.07.07" end="2008.07.8" style="Working" />
      <period resource_id="server_1" start="2008.07.8" end="2008.07.12" style="Maintance" />If you need to add a different bar style to particular rows of data on your chart, then you'll need to add new bar style XML for each colour you wish to use in the Custom XML on the Chart Attributes page, and then you'll also need to generate the data XML yourself, applying the necessary bar style to the relevant row of data. I've got an example of how custom data can be generated for a Resource Gantt here e.g. https://apex.oracle.com/pls/apex/f?p=36648:73 but keep in mind that particular example doesn't demo adding different styles to the data...but it can certainly give you an idea of what's entailed in the generation of custom data for your chart.
    I hope this helps.
    Regards,
    Hilary

  • How to restrict the user to change/enter field value in me21n?

    Hi, Experts,
    in the me21n screen..for matkl field we need to validate the user authorization.
    if that user having the authorization then it should allow to enter value in the matkl(material group) field.
    other wise it should not allow.
    how to do this validation?
    can anybody help me on this.
    Thanks and Regards,
    venkat

    Hi Aprna,
    Thanks for your reply, but can you give some code for that.
    actually i am new to badi or userexits...
    if you can provide code it will be more helpful for me.
    Thanks in Advance,
    venkat

  • Apex Stacked bar chart X Axis

    Hi Guys,
    I'm currently using Apex 4.0.2.00.06 with anychart 5.1.3.
    I have added a chart to the page but it is not pulling back all the values on the x-axis.....i have attempted to increase the width of the chart and enable scrolling to no avail....any ideas?
    Cheers
    S

    Hi S,
    Check out what you have set for the Maximum Rows under Chart Series/Series Query.
    Jeff

  • Stacked Bar Chart - Hiding legends with 0 values

    I'm using Crystal Reports 2008, building a report that will eventaully be called from an ASP.NET page.
    I've built a stacked bar chart that is displaying values per month of the number of various vehicle types.  The X values are the months, the Y values are the number of each vehicle type and the stacked series are each different vehicle type.  However, depending on the months that the user asks for, there may be some vehicle types that do not have any data, thus the number is 0.  Is there a way for the report to see that there is 0 data for this vehicle type and thus not include it in the legend of the various vehicle types?
    First time poster, so hopefully I explained everything well enough.  I searched the forums for anything matching Stacked Bar Chart and did not find anything.  I don't know how to find/query SAPNotes.
    Thanks.

    Thanks for the response, but I'm not familar with Alters?  Could you describe a bit more?  I didn't see anything in the documentation about it.

  • Clickable Bars in a Bar Chart

    I would like some guidance on how to implement a bar chart with clickable bars that would let me highlight the clicked bar and prominently display the X and Y values related to it either somewhere in or overlaying the chart or elsewhere in the
    form.  The chart needs to allow positive and negative bars, ideally with a zero line, but without X or Y labels, grid lines, or other visual elements.  I am using Visual C# 2010 Express to do the programming.
    I have been exploring the Chart class and articles that talk about making it clickable.  However, none seem to address this type of need.  Can I do this using Chart, or is there some other base class with which to do this?  Also, will I need
    to detect the mouse screen location and programmatically map it to a location within the chart to determine which bar was clicked, and then paint the chart myself to highlight the bar, or is there some simpler way to do what I want?
    Thanks for your help.  Steve
    P.S.  This is a Windows Forms app developed with Visual C# 2010 Express if that matters.

    Hi Steve,
    Your question is related to Charts, Here is a forum specially for Charts.
    http://social.msdn.microsoft.com/Forums/en-US/home?forum=MSWinWebChart
    We have helped you move this thread to Charts forum to get supports.
    Best regards,
    Youjun Tang
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for