Change color of measures - Column Combination Dual Axis

Hi,
I have a couple of graphs of the type Column Combination Dual Axis.
I want to change the colors for these measures but that does not seem to be possible when using this type of chart?
I can only change the color of the Axis?
First, I thought it was something wrong with my chart so I tried to create a new application with this chart type and got the same result.
Does anyone know if it should be like this?
Br
Max

Hi Max,
how many measures do you want to use for the Chart type "Column Combination Dual Axis"?
Do you have tried to swap the axis in your chart type setting?
In my case it works as expected and I´m able to change the color of the measures ( = the axis)
I think it´s important to add the measures in the rows at the initial view of the data source (or you can change it by swap the axis in the chart).
Hope it helps!
Best regards,
Michael

Similar Messages

  • How to change colors of individual column bar in the same data series

    in mac numbers, how to change colors of individual column bar in the same data series. The entire column series gets selected in the column bars and cannot select to change colors of specifc bars.

    Hi Kiran,
    no its not possible through Theme editor also ,because these colors are coming from Compiler which u are using.
    Regards,
    Govindu

  • Change color in alv column

    how do change color of a column in ALV.

    Hi
    The below abap program shows how to change the colour of individual ALV cells /fields. Only a small number of changes are required from a basic ALV grid which include adding a new field to ALV data declaration table(it_ekko), populating this field with the field name identifier and colour attributes and finally adding an entry to layout control work area. These changes are highlighted in bold below.
    REPORT  zdemo_alvgrid                 .
    REPORT  ZALV_CELLCOLOR.
    TABLES:     ekko.
    type-pools: slis.                                 "ALV Declarations
    *Data Declaration
    TYPES: BEGIN OF t_ekko,
      ebeln TYPE ekpo-ebeln,
      ebelp TYPE ekpo-ebelp,
      statu TYPE ekpo-statu,
      aedat TYPE ekpo-aedat,
      matnr TYPE ekpo-matnr,
      menge TYPE ekpo-menge,
      meins TYPE ekpo-meins,
      netpr TYPE ekpo-netpr,
      peinh TYPE ekpo-peinh,
      CELLCOLOR TYPE LVC_T_SCOL,
    END OF t_ekko.
    DATA: it_ekko TYPE STANDARD TABLE OF t_ekko INITIAL SIZE 0,
          wa_ekko TYPE t_ekko.
    *ALV data declarations
    data: fieldcatalog type slis_t_fieldcat_alv with header line,
          gd_tab_group type slis_t_sp_group_alv,
          gd_layout    type slis_layout_alv,
          gd_repid     like sy-repid,
          gt_events     type slis_t_event,
          gd_prntparams type slis_print_alv.
    *Start-of-selection.
    START-OF-SELECTION.
      perform data_retrieval.
      perform build_fieldcatalog.
      perform build_layout.
      perform set_cell_colours.
      perform display_alv_report.
    *&      Form  BUILD_FIELDCATALOG
          Build Fieldcatalog for ALV Report
    form build_fieldcatalog.
    There are a number of ways to create a fieldcat.
    For the purpose of this example i will build the fieldcatalog manualy
    by populating the internal table fields individually and then
    appending the rows. This method can be the most time consuming but can
    also allow you  more control of the final product.
    Beware though, you need to ensure that all fields required are
    populated. When using some of functionality available via ALV, such as
    total. You may need to provide more information than if you were
    simply displaying the result
                  I.e. Field type may be required in-order for
                       the 'TOTAL' function to work.
      fieldcatalog-fieldname   = 'EBELN'.
      fieldcatalog-seltext_m   = 'Purchase Order'.
      fieldcatalog-col_pos     = 0.
      fieldcatalog-outputlen   = 10.
      fieldcatalog-emphasize   = 'X'.
      fieldcatalog-key         = 'X'.
    fieldcatalog-do_sum      = 'X'.
    fieldcatalog-no_zero     = 'X'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'EBELP'.
      fieldcatalog-seltext_m   = 'PO Item'.
      fieldcatalog-col_pos     = 1.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'STATU'.
      fieldcatalog-seltext_m   = 'Status'.
      fieldcatalog-col_pos     = 2.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'AEDAT'.
      fieldcatalog-seltext_m   = 'Item change date'.
      fieldcatalog-col_pos     = 3.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MATNR'.
      fieldcatalog-seltext_m   = 'Material Number'.
      fieldcatalog-col_pos     = 4.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MENGE'.
      fieldcatalog-seltext_m   = 'PO quantity'.
      fieldcatalog-col_pos     = 5.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'MEINS'.
      fieldcatalog-seltext_m   = 'Order Unit'.
      fieldcatalog-col_pos     = 6.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'NETPR'.
      fieldcatalog-seltext_m   = 'Net Price'.
      fieldcatalog-col_pos     = 7.
      fieldcatalog-outputlen   = 15.
      fieldcatalog-do_sum      = 'X'.
      fieldcatalog-datatype     = 'CURR'.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
      fieldcatalog-fieldname   = 'PEINH'.
      fieldcatalog-seltext_m   = 'Price Unit'.
      fieldcatalog-col_pos     = 8.
      append fieldcatalog to fieldcatalog.
      clear  fieldcatalog.
    endform.                    " BUILD_FIELDCATALOG
    *&      Form  BUILD_LAYOUT
          Build layout for ALV grid report
    form build_layout.
      gd_layout-no_input          = 'X'.
      gd_layout-colwidth_optimize = 'X'.
      gd_layout-totals_text       = 'Totals'(201).
      gd_LAYOUT-coltab_fieldname = 'CELLCOLOR'.  "CTAB_FNAME
    endform.                    " BUILD_LAYOUT
    *&      Form  DISPLAY_ALV_REPORT
          Display report using ALV grid
    form display_alv_report.
      gd_repid = sy-repid.
      call function 'REUSE_ALV_GRID_DISPLAY'
           exporting
                i_callback_program      = gd_repid
                i_callback_top_of_page   = 'TOP-OF-PAGE'  "see FORM
               i_callback_user_command = 'USER_COMMAND'
               i_grid_title           = outtext
                is_layout               = gd_layout
                it_fieldcat             = fieldcatalog[]
               it_special_groups       = gd_tabgroup
              it_events               = gt_events
              is_print                = gd_prntparams
                i_save                  = 'X'
               is_variant              = z_template
           tables
                t_outtab                = it_ekko
           exceptions
                program_error           = 1
                others                  = 2.
      if sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
      endif.
    endform.                    " DISPLAY_ALV_REPORT
    *&      Form  DATA_RETRIEVAL
          Retrieve data form EKPO table and populate itab it_ekko
    form data_retrieval.
      select ebeln ebelp statu aedat matnr menge meins netpr peinh
       up to 10 rows
        from ekpo
        into CORRESPONDING FIELDS OF TABLE it_ekko.
    endform.                    " DATA_RETRIEVAL
    Form  TOP-OF-PAGE                                                 *
    ALV Report Header                                                 *
    Form top-of-page.
    *ALV Header declarations
      data: t_header type slis_t_listheader,
            wa_header type slis_listheader,
            t_line like wa_header-info,
            ld_lines type i,
            ld_linesc(10) type c.
    Title
      wa_header-typ  = 'H'.
      wa_header-info = 'EKKO Table Report'.
      append wa_header to t_header.
      clear wa_header.
    Date
      wa_header-typ  = 'S'.
      wa_header-key = 'Date: '.
      CONCATENATE  sy-datum+6(2) '.'
                   sy-datum+4(2) '.'
                   sy-datum(4) INTO wa_header-info.   "todays date
      append wa_header to t_header.
      clear: wa_header.
    Total No. of Records Selected
      describe table it_ekko lines ld_lines.
      ld_linesc = ld_lines.
      concatenate 'Total No. of Records Selected: ' ld_linesc
                        into t_line separated by space.
      wa_header-typ  = 'A'.
      wa_header-info = t_line.
      append wa_header to t_header.
      clear: wa_header, t_line.
      call function 'REUSE_ALV_COMMENTARY_WRITE'
        EXPORTING
          it_list_commentary = t_header.
               i_logo             = 'Z_LOGO'.
    endform.                    "top-of-page
    *&      Form  SET_CELL_COLOURS
          Set colour of individual ALV cell, field
    FORM SET_CELL_COLOURS .
      DATA: WA_CELLCOLOR TYPE LVC_S_SCOL.
      DATA: ld_index TYPE SY-TABIX.
      LOOP AT IT_EKKO into wa_ekko.
        LD_INDEX = SY-TABIX.
      Set colour of EBELN field to various colors based on sy-tabix value
        WA_CELLCOLOR-FNAME = 'EBELN'.
        WA_CELLCOLOR-COLOR-COL = sy-tabix.  "color code 1-7, if outside rage defaults to 7
        WA_CELLCOLOR-COLOR-INT = '1'.  "1 = Intensified on, 0 = Intensified off
        WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
        APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
        MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
      Set colour of NETPR field to color 4 if gt 0
        if wa_ekko-netpr gt 0.
          WA_CELLCOLOR-FNAME = 'NETPR'.
          WA_CELLCOLOR-COLOR-COL = 4.  "color code 1-7, if outside rage defaults to 7
          WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
          WA_CELLCOLOR-COLOR-INV = '0'.  "1 = text colour, 0 = background colour
          APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
          MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
        endif.
      Set colour of AEDAT field text to red(6)
        WA_CELLCOLOR-FNAME = 'AEDAT'.
        WA_CELLCOLOR-COLOR-COL = 6.  "color code 1-7, if outside rage defaults to 7
        WA_CELLCOLOR-COLOR-INT = '0'.  "1 = Intensified on, 0 = Intensified off
        WA_CELLCOLOR-COLOR-INV = '1'.  "1 = text colour, 0 = background colour
        APPEND WA_CELLCOLOR TO wa_ekko-CELLCOLOR.
        MODIFY it_ekko from wa_ekko INDEX ld_index TRANSPORTING CELLCOLOR.
      ENDLOOP.
    ENDFORM.                    " SET_CELL_COLOURS

  • OBIEE 11g pivot dumb question - changing order of measure columns

    Hi, dumb question, in OBIEE 11g, if using a table view it is easy for end users to drag and drop the measure columns in any order desired. Is there a way for end users to change the order of measures when using a pivot view?
    Thanks,
    Scott

    Hi Dpka, no, moving to rows doesn't really solve the issue. Dimensions don't allow you to change the order of the members, except by alphabetic sort.
    Lets say the default pivot has three measure columns in this order:
    1. Sales
    2. Revenue
    3. Cost of Goods Sold.
    If a user wants to change the order of the columns to be:
    1. Sales
    2. Cost of Goods Sold
    3. Revenue
    on a table they just drag the columns the way they want them. On a pivot, it appears that there is no way to change this.
    Thx,
    Scott

  • Change color of one column in chart

    Hi
    is there a way to change the color of just one column in a column chart? I want to highlight one column but I can't seem to select just that column.
    Thanks

    Welcome to Apple Discussions
    Click on the table to select it then click on the letter column heading to select the desired column. Now go to the object inspector & select Color Fill from the drop-down menu if it's not already chosen then click on the color box to bring up the color chooser. Select the color you want to fill the column.

  • Style to change color of single column in list

    Hi,
    I need to get below functionality in results list. need to break part of sentence to another line with different color.
    How to achieve this.
    Thanks & Regards,
    Siva

    Hi
    check this solution
    https://social.msdn.microsoft.com/Forums/sharepoint/en-US/1f2f74b6-9260-4dc4-a093-a36947e1eb29/is-it-possible-to-add-colored-text-to-a-list-column-description?forum=sharepointgenerallegacy
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Need to change color of one column's value depending on the other column

    Hi,
    i have a search form which displays two column values
    First column value's colour should be based on second column's value
    For example, if second column has values 'Active', 'Inactive' and 'Pending'
    If 'Active' , the first column value's color sholud be 'red'
    If 'inacitve, another color ....
    Thanks in advance,

    Hi!
    What we did was we added a column on the VO that returns kind of a css part (for example if a column value is 'Active' the value of this column should be "background-color:rgb(255,0,0);")
    Than you use something like this on your column:
    inlineStyle="#{row.StatusStyle}"where StatusStyle is the name of the column with "background-color:rgb(255,0,0);" value.
    The problem here can be that the background color doesn't cover the whole column but only the text in it (so if it is null, the color is default).
    If you want the whole column to be of this color you use something like this:
                                        <af:column ...>
                                          <afh:tableLayout ...>
                                            <afh:rowLayout ...>
                                              <afh:cellFormat inlineStyle="#{row.StatusStyle}" ...>
                                                <af:outputText ...>
                                                </af:outputText>
                                              </afh:cellFormat>
                                            </afh:rowLayout>
                                          </afh:tableLayout>
                                        </af:column>Basically you put another table layout inside a column instead just a outputText (or whatever control you use)
    Hope this is understandable and it helps :)
    It works for us.
    BB

  • Changing color of columns in CL_GUI_CHART_ENGINE

    Dear Developers,
    I am displaying a Columns Graph using class CL_GUI_CHART_ENGINE. My requirement is to change color of selected columns based on their height. For example if height of the column exceepds 10, then the color of that particular color is to be made red. Is that possible using CL_GUI_CHART_ENGINE ??
    Thanks and Regards,
    kartik

    Hi,
          Refer below link:
    https://forums.sdn.sap.com/click.jspa?searchID=3958197&messageID=2474585
    <b>Reward points</b>
    Regards

  • Formatting a combined dual chart - which svg commands necessary?

    Hello all,
    I have a combined dual chart (two columns and one line) as shown in the picture below. I'd like to format the following things:
    - color of columns (costs in one color and Incoming Order List in a different)
    - color of outer ticks of both y-axis
    - hiding the minor gridline of y-axis
    I changed both y-axis colors with this svg-css lines:
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body path.v-fixed-valueaxisline {stroke: #dbcbcb;}
    .chart-style-1 g.v-m-yAxis2 g.viz-axis-body.v-body path.v-fixed-valueaxisline {stroke: #dbcbcb;}
    For the outer tick lines I tried this - but it didn't work:
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body line.v-fixed-valueaxisline {stroke: #dbcbcb;}
    I also tried to hide the minor gridline with this command (also no impact):
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body line.v-gridline {stroke-width: 0;}
    The color configuration of a dual chart is very limited. You can only set colors for 2 series and Design Studio colors the y-axis as well. There is no color configuration for the individual measures anymore.
    Does anyone has an idea of how the SVG commands in CSS has to be for changing the colors of columns and outer ticks and hide the minor gridline?
    Thanks,
    Andreas

    Hi Andreas,
    After using the following CSS:
    /* Y-AXIS: change color for the side Y-AXIS lines */
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body path.v-fixed-valueaxisline {stroke: pink;}
    .chart-style-1 g.v-m-yAxis2 g.viz-axis-body.v-body path.v-fixed-valueaxisline {stroke: pink;}
    /* Y-AXIS: For the outer tick lines */
    /* change color */
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body line.v-fixed-valueaxisline {stroke: black;}
    .chart-style-1 g.v-m-yAxis2 g.viz-axis-body.v-body line.v-fixed-valueaxisline {stroke: black;}
    /* or hide */
    .chart-style-1 g.v-m-yAxis g.viz-axis-body.v-body line.v-fixed-valueaxisline {stroke-width: 0;}
    .chart-style-1 g.v-m-yAxis2 g.viz-axis-body.v-body line.v-fixed-valueaxisline {stroke-width: 0;}
    /* set colors for measures */
    /* measure 1 and 2 displayed as bars */
    .chart-style-1 g.v-column g.v-datashape:nth-child(1) rect.v-datapoint.v-morphable-datapoint {fill: gold;} 
    .chart-style-1 g.v-column g.v-datashape:nth-child(2) rect.v-datapoint.v-morphable-datapoint {fill: orange;}
    /* measure 3 displayed as line */
    .chart-style-1 g.v-m-plot g.v-module g.v-datalines path.v-lines.v-morphable-line {stroke: silver;}
    .chart-style-1 g.v-m-plot g.v-module g.v-markers.v-datashapesgroup path.v-datapoint.v-morphable-datapoint {fill: silver;}
    /* adjust colors for measures in the legend to match adjusted colors in the bars/lines */
    .chart-style-1 g.v-legend-content g.v-row.ID_0 path {fill: gold;}
    .chart-style-1 g.v-legend-content g.v-row.ID_1 path {fill: orange;}
    .chart-style-1 g.v-legend-content g.v-row.ID_2 path {fill: silver;}
    The Chart looks as follows:
    Useful thread/answer regarding changing colors for measures in a column combination chart with css: http://scn.sap.com/message/15155308#15155308
    Kind regards,
    David

  • Changing scale on Dual Axis on Illustrator Graph

    Looking for some assistance on changing the scale when you have a dual axis, but only on one side. I can select the entire graph and change the left and right axis. However even when I select only one line (via the legend) I cannot just change one side. Appreciate any assistance....thanks

    Hi Kalyan
    I have seen this happening on a PowerPivot workbook in which the selected option had no value, which triggered the chart to lose its configuration.  This is a bug, though I would argue is a bug in the Pivot Charts and not in PowerPivot itself.
    The solution I used was to remove the slicer option that yields no value (in your case it would be NA), so the user can only select valid combinations that retrieve a numeric output.
    Javier Guillen
    http://javierguillen.wordpress.com/

  • How can I change the color of a column header?

    I need to change the color for some column header, how can I do it in webdynpro ABAP? Is it possible?

    hi ,
    i have used in alv....
    <font color="RED">text</font>
    but i think it is not possible to change the colour in table ui element.
    regards,
    sahai.s

  • 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

  • Change color of column background when entire column meets a condition

    I'm trying to create a report that visually indicates staffing coverage during certain hours. The report has the hours of the day as column headers, and for each person-row, a column can contain a 0 if that person is not scheduled for that hour, a 1 if one person is scheduled for that hour, or 2 if 2 people are scheduled for that hour, etc.<p>
    What I need is to show gaps in coverage, so I need to color red those columns where there are 0's for all rows in that particular column.<p>
    thanks!

    Couldn't you do this in the report SQL itself<BR><BR>The problem I see with this is that based on what she's asking (i.e. all rows in that column must be zero), you will not know if a column should be marked in red until after all of the rows have been retrieved and displayed. To do what you suggest, you'd have to run the report once to find columns that sum to zero, i.e.:<BR><BR>
    SELECT SUM(col1), sum(col2)...<BR>
    INTO v_sum_col1, v_sum_col2...<BR><BR>
    Then for any column with a sum of zero -- add in the code you suggest into the second SELECT to return the data, possibly with a DECODE twist:
    DECODE(v_sum_col1, 0, '&lt;span style="background-color:pink"&gt;0&lt;/span&gt;', col1)

  • Hide Measure Column

    Hi Experts,
    Can anyone tell me please that how to hide a measure column(e.g. any amount) form pivot table in obiee 11g.
    Thanks,
    -------------

    Hi,
    If the above is not working the add display:none in the Format Measure Values
    And change the formatting of the Format Measure Values-Font color=White #FFFFFF and border of the three sides
    as light gray to match the other columns border color and also make necessary color changes in the next column
    beside it. So that it appears to be a same column.
    Please award points if this was useful/helpful
    Regards
    MuRam

  • OBIEE: Pivot table chart is not proper when GOURL is on Measure Column

    Hi All,
    I a facing an issue with Pivot table chart drill.
    Pivot Table columns:
    Row description column in row section.
    Column description (Periods) in column section and
    A Number format amount column in Measure Section (In BMM it is not defined as a measure column).
    GOURL written on the Measure column to enable the drill in Pivot table data.
    When I click on chart the pivoted reasults Graph: Vertical Bar, Type: Default, Style: Rectangle.
    It shows the row description in X axis but the amount is not shown properly (it just shows 1,2,3..numbers on Y axis instead of the amounts which are in lakhs) on Y axis and alos there is not vertical bars showing up.
    Any help in this regard is very helpfull.
    Regards,
    Sagar Vishwanathwar.

    hi Karthikeyan,
    use combined with similar request(union report)
    In first criteria show all the columns
    Second criteria 'Grand total' , year ,month, avg _formula that u have
    Thanks,
    Saichand.v

Maybe you are looking for