Columnchart Column Width based on horizontal axis

I've been searching for awhile on  how to do this, but so far I've come up pretty much empty.
I have a column chart with a datetime axis as the horizontal axis, and each data point represents not just a single date but a range of dates (i.e., there is a time_start and time_end value, and I've been plotting using the time_start as my x value). I want the columns to line up with the start and end date rather than being fixed width, so my thought was to write a custom renderer to accomplish this. Unfortunately I don't have any experience with custom renderers, and I haven't found a way to find the size of the horizontal axis in pixels (in fact, I'm not sure how to access the chart object or axis object at all from within the renderer). Any suggestions?

Thanks Niall ... though I've modified your response to FormCalc
It's begun to work though there appears to be a slight glitch.  Only the column cell for Row 1 is showing up.  It would seem that it isn't correctly counting/adding all rows.  Also, when I unselect the checkbox, it isn't re-hiding the column.
My script:
var vRows = Table1._Row1.count
if($=="1")then
var i=0; i<vRows; i++
Table1.Row1[" + i + "].Cell10.presence = "visible"
Table1.Row1[" + i + "].Cell11.presence = "visible"
Table1.Row1[" + i + "].Cell10.relevant = "+print"
Table1.Row1[" + i + "].Cell11.relevant = "+print"
else
var i=0; i<vRows; i++
Table1.Row1[" + i + "].Cell10.presence = "hidden"
Table1.Row1[" + i + "].Cell11.presence = "hidden"
endif
Joanne

Similar Messages

  • Cell column width using spry horizontal menu

    Hi
    Trying to set the cell column width using DWCS5.5 Spry Horizontal menu.
    view-source:http://www.roatan.ws/spry-menu-bob
    I used help to get directions and I think I did it correctly but I do not know for sure.
    /* Menu item containers are same fixed width as parent */
    ul.MenuBarHorizontal ul li
              background-color: #356A68;
              float: none;
              background-color:transparent;
              height: auto;
              width: auto;
    Trying to clean up my site and get things working an looking right.
    Any suggestions appreciated
    bob

    Spry menus do not contain any table columns or cells.    They are just lists <ul> <li>  tags  styled with CSS.
    ul.MenuBarHorizontal li
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 12px;
        position: relative;
        text-align: center;
        cursor: pointer;
        width: 8em; /**adjust top-menu width**/
        float: left;
        text-decoration: underline;
    ul.MenuBarHorizontal ul
        margin: 0;
        padding: 0;
        list-style-type: none;
        font-size: 10px;
        z-index: 1020;
        cursor: default;
        width: 8em; /**adjust sub-menu width**/
        position: absolute;
        left: -1000em;
        background-color: #356A68;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists 
    http://alt-web.com/
    http://twitter.com/altweb
    http://alt-web.blogspot.com/

  • How to set column width based on header width?

    I have a column that will only hold 1 character. This is good, but I want the Column width to match the column header.
    For example,
    Currently I get:
    select * from table;
    I NAME
    1 ROBERT
    The problem is, I want the Column header spelled out (in this case it's just ID)
    ID NAME
    1 ROBERT
    Better Yet,
    if i did:
    select ID "ID NUMBER", NAME "FIRST NAME" from table;
    I'd like to see:
    ID NUMBER FIRST NAME
    1 ROBERT
    (Centering the ID within the Column width would be good too, but that is "gravy")
    Any thoughts? I've been trying:
    COLUMN ID FORMAT A10 (which obviously didn't work!)
    Thanks,
    KSL.
    Edited by: leonhardtk on Aug 23, 2010 11:55 AM

    If you use tags it'll be easier to see what formatting effects you're talking about.
    Does <a href="http://download.oracle.com/docs/cd/E11882_01/server.112/e10823/ch_six.htm"><tt>col id head "ID Number" format a9</tt></a> do what you want?
    Edited by: William Robertson on Aug 23, 2010 6:50 PM                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Display a horizontal scrollbar in a JTable as to fit column width

    hi all,
    I am using JTable to display records.I've set a horizontal scrollbar by using 'table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);',but although i got a horizontal scrol bar the column width is constant for all the columns and not getting adjusted according to the lenght of the column names. As the column names and the records are of different size in the database i want the column widht to be adjusted according to the length of column names and record length.so please tell me how to do it?
    regards...

    .I've set a horizontal scrollbar by using 'table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);You are welcome.
    i want the column widht to be adjusted according to the length of column names and record length.so please tell me how to do it?Search the forum. This question has been asked and answered before.

  • JTable -  Horizontal Scrollbar - Column Width

    I wish to add a horizontal scrollbar(which for some stupid reason Java has not included) to my JTable which is inside a JScrollPane and also make sure that the width of the fourth column is longer and can fit the String that i wish to display. Now, i have searched the forum for solutions but none of them seem to work. The setting of the column width with the help of TableColumnModel does not seem to work and not to mention the fact that when i turn auto rezise off for the JTable, the JTable does give me a horizontal scrollbar but then it makes the columns so less in width that i have gray area left on the right hand side and the setColumnsToFit method does not work. I have five columns and here is the code, any help would be greatly appreciated Thanks:
    excepTable = new JTable(excepTableModel);
    excepTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    int width = 100;
    TableColumnModel tcm;
    TableColumn tc;
    for(int i = excepTable.getColumnCount(); i > 0; i--)
    tcm = (TableColumnModel)excepTable.getColumnModel();
    tc = tcm.getColumn(i);
    if(i == 3)
    width = 400;
    tc.setWidth(width);
    tc.setMinWidth(width);
    tc.setMaxWidth(width);
    tc.setPreferredWidth(width);
    width = 100;
    exScroller = new JScrollPane(excepTable);

    .I've set a horizontal scrollbar by using 'table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);You are welcome.
    i want the column widht to be adjusted according to the length of column names and record length.so please tell me how to do it?Search the forum. This question has been asked and answered before.

  • Break for Horizontal Axis Labels in OBIEE 11g Bar Chart

    Hi all,
    I have a vertical bar chart created in OBIEE 11g. The horizontal axis (x-axis) is a compound of Scenario, Year, and Month. The chart width is already long enough so it cannot be made any longer.
    The chart looks like this (the label of horizontal axis is staggered):
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    Actual Feb 2012____________Actual Apr 2012
    ___________Actual Mar 2012_____________Actual May 2012
    How can I force the labels for the horizontal axis to be broken into 2 lines (or even 3 lines), so that it will look like this:
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___llllllllllllll_________llllllllllllll_________llllllllllllll_________llllllllllllll
    ___Actual________Actual________Actual________Actual
    __Feb 2012_____Mar 2012_____Apr 2012______May 2012
    Any advice? Thanks a lot!

    Hi Stewart,
    I could not try this yet, but how about 'Enabling the Contains HTML Markup' for the columns for Heading and including a '</br>' tag at the end of the name.
    Ex: Column - >Properties -> column Format -> Column Heading -> Enable Contains HTML Markup -> Column Heading's suffix =less than symbol /br greater than symbol (Oracle forums is even break the line too!! ;) So included the text)
    Hope this helps.
    Thank you,
    Dhar
    Edited by: Dhar on 15-May-2012 20:11
    Edited by: Dhar on 15-May-2012 20:12

  • How to set dynamic column width for analysis item

    Dear Experts,
    I have a query view which is added in the web template as an analysis item. The web item properties on width is not working - I tried entering a value in the width but when I execute the template, the query view's width still stays the same.
    Module com.sap.ip.bi.rig.ColumnWidth don't seem correct because I don't want the column width to be static. As my number of columns may change, I wanted the overall width of my query view to stay the same.
    Appreciate any ideas which can solve this issue
    Thanks and Regards,
    huimin
    BW newbie

    Hi Huimin,
    I don't think it is possible to fix the width of the Analysis webitem since it dynamically adjusts its width based on the text maxlength within its cells. Unless you use com.sap.ip.bi.rig.ColumnWidth where the cols are static, you cannot achieve this.
    Even if you do override the css settings using a cell padding or something, the portal settings would override the same. How about using a Report webitem to insert tables/charts & check if the width can be adjusted here - just a thought.
    --Priya

  • Interactive Report Column Width adjustable?

    I am using the interactive reports in 3.1.2 and love them. That said, I have a question/problem. I have a column in my report that is essentially comments. It often contains hundreds of bytes of text per row of data. When I use the interactive report I find no where that I can define a default column width or number of report rows to display. So, when I run the report, the column with the comments defaults to a column width of about 25 characters and this causes it to display many html rows for this report row and makes the report very ugly.
    Does anyone know if there is a way to redefine a column in an interactive report to prevent this?

    Scott,
    Using FOP.
    Standard reports PDF can resize columns.
    Interactive report does not. Additionally, the page size does not work the same as the regular reports. Moving between landscape and portrait changes the size of the height and width.
    I assume there are several problems.
    1. The report does not resize horizontally. I will have to create a second report to see if I can duplicate the issue.
    2. The Print page of the report region does not have the same fields as the regular reports. I am not sure why or how to overcome the lack of being able to resize columns, etc.
    3. The functionality on the page does not seem to all work. At least not the same way as the regular reports. Changing paper size and orientation are two examples I have verified.
    4. Can't select a template. How can a different XSL-FO template be used?
    I am going to try and push it to Word.
    Sam
    Edited by: slavanaway on Mar 26, 2009 1:13 PM

  • How to increase a column width in numbers

    Hello,
    Is there a way to increase the column width of a numbers table by using a short cut.
    In a few words is there any shortcut to increase or decrease the size of cells and columns?
    Something like command+?
    Regards,
    Jonathan M.

    No key commands are available.  You can select the table then use the "Table Formatter":
    These controls will apply to the items selected.  If you have one column highlighted then you can change the width of that one column.  If you select all columns then this control will apply to the selected columns.
    you can also hover the cursor over the dividers between columns (the lines in the header... the lines between, for instance, the "A" and  the "B").  The cursor will change to a vertical bar with a horizontal line with left right arrows, then click and drag as needed.  Similar for rows.

  • Change the column width on the fly

    Dear all,
    I have a problem, i have a matrix report, the row is "the project name" and the column is "the items" using within each project, and the problem is the items are variable from time to time the report run for each project, so its exceeds the paper width.
    And the question is, is there any way to change the width of the column on the fly, i mean dynamiclly change the column width each time the report is called to make all items fit the paper width.
    Thank u

    i don't think that we can change the layout of the column in reports
    The simple solution for that problem is that u have to
    fix the horizontal and vertical layout of the text item
    better is to post this problem at reports forum
    Najeeb

  • Column width for cl_gui_splitter_container not working

    Hello friends,
    I'm trying to set the column width in a splitter, but the width is not being changed. Can anyone help me ? Here is a draft of my code
    At the PBO of the screen form I have the following:
    data:
               gobj_split                       TYPE REF TO cl_gui_splitter_container,
              gobj_container_1        TYPE REF TO cl_gui_container,
               gobj_container_2       TYPE REF TO cl_gui_container,
               gobj_drawer_container  TYPE REF TO cl_gui_docking_container,
    gobj_right_container   TYPE REF TO cl_gui_docking_container,
    *-- Create Container for Drawer (Left)
       IF gobj_drawer_container IS INITIAL.
         CREATE OBJECT gobj_drawer_container
           EXPORTING
             repid     = gv_repid
             dynnr     = gv_dynnr
             extension = 400
           EXCEPTIONS
             others    = 1.
       ENDIF.
    *-- Create Container for the right
       IF gobj_right_container IS INITIAL.
         CREATE OBJECT gobj_right_container
           EXPORTING
             repid                       = gv_repid
             dynnr                       = gv_dynnr
             side                        = gobj_right_container->dock_at_right
             extension                   = 1500
           EXCEPTIONS
             cntl_error                  = 1
             cntl_system_error           = 2
             create_error                = 3
             lifetime_error              = 4
             lifetime_dynpro_dynpro_link = 5
             OTHERS                      = 6.
    ENDIF.
    *-- Create Split Object
    CREATE OBJECT gobj_split
         EXPORTING
           parent            = gobj_drawer_container
           rows              = 2
           columns           = 1
         EXCEPTIONS
           cntl_error        = 1
           cntl_system_error = 2
           OTHERS            = 3.
    *-- Split into two rows and one column
    CALL METHOD gobj_split->get_container "Container for Date & Information
         EXPORTING
           row       = 1
           column    = 1
         RECEIVING
           container = gobj_container_1.
       CALL METHOD gobj_split->get_container "Container for Main Options
       EXPORTING
         row       = 2
         column    = 1
       RECEIVING
         container = gobj_container_2.
    *-- Set Row and Column Modes to absolute
    CALL METHOD gobj_split->set_row_mode
         EXPORTING
           mode = gobj_split->mode_absolute.
       CALL METHOD gobj_split->set_column_mode
         EXPORTING
           mode = gobj_split->mode_absolute.
    *-- Set Row Height (THIS IS WORKING)
      gobj_split->set_row_height( EXPORTING id     = 1
                                                                               height = 50 ).
    *-- Set Column Width ( THIS IS NOT WORKING )
       gobj_split->set_column_width( EXPORTING id    = 1
                                                                                   width   = 50 ).    
    And this is what I get... no matter value I put in line 80, the width doesn't change.
    Does anyone have any idea why this is happening ?
    Thank you

    You splitted the parent container in two part upper and lower row (2 rows), so you are able to adjust the vertical size, but not the horizontal size (only 1 column)  this size must be adjusted on parent container.
    Regards,
    Raymond

  • How to fix BW Query column width globally before query execution?

    Dear Experts,
    Regarding the BW Query run in Business Explorer, the width of the first column A of the result displayed in Excel is usually based on the width of the query title.
    I know that we can adjust the column width in Excel: right click on the column and change the properties as "Do not adjust column width" on refresh. But how can I change and fix this width globally (regardless of the actual length of the cells) inside the analyzer during query design, and before the result coming out in Excel? I want the change is on the "Change query (global definition)", and not inside the Excel.
    Thanks & regards,
    James
    Edited by: OSS support CCS on Feb 9, 2011 10:15 AM

    Hi,
    The column width is determined by the Analyser at the runtime  and is taken by the settings done at Infoobject level in "Business Explorer tab". Like short text will have X width column.
    If you need to have fixed column with different from what is proposed by the system u need to save ur query as Woorkbook.
    or if u are displaying them in WEB ANALYSER then u can have report designer to control the formatting.
    Regards
    Ravish

  • Prob with fixed column widths and word wrapping in viewer

    i have a report where each record has a very long paragraph of text in it.
    In desktop and plus, the text column is at a fixed width and the text just wraps nicely according to the column width.
    But in Viewer, the column widths do not stay fixed, the text does not wrap, and the long text is displayed in a single line that completely stretches the column width off the page and requires a horizontal scroll bar.
    is there anyway to fix the column width in viewer, have the text naturally wrap, and prevent the column stretching. All word wrapping settings are on, but seem to have no effect. I can't seem to find any solution to this.
    Thanks...

    Hi Pritam,
    Per my understanding that you can't see the vertical scrollbar of the ReportViewer controls 2012 to scroll for the grid rows, but can see the vertical scrollbar of the web application, you also can't fix the headers while scrolling, right?
    I have tested on my local environment and can't reproduce your issue, but you have an alternative way to add some css  to the web form's source code to display the vertical scrollbar.
    Details information below for your reference:
    Please check below properties setting of the reportviewer which control the visibility of the scrollbar:
    AsyncRendering="true"
    SizeToReportContent="false"
    Please check if this problem also occur on other version of IE and other type of browser.
    Please check if you have done correct setting of the Fix data to freeze the table header as the step of below:
    http://technet.microsoft.com/en-us/library/bb934257(v=sql.100).aspx
    If step1 doesn't work, please click the source of webform.aspx and add below CSS to add the vertical scrollbar manually:
    #ReportViewer1 {
              overflow-y: scroll;
    Run the application you will see it display as below:
    Similar thread for your reference:
    https://social.msdn.microsoft.com/forums/sqlserver/en-US/f96b3b56-e920-411b-82ea-40467c922e66/reportviewer-control-vertical-scroll-bars
    If you still have any problem, please feel free to ask.
    Regards
    Vicky Liu

  • Dynamic Column width for a report

    Will the width property of a column be able to be set at run-time (i.e. ability to set the width of a column to an expression) in SQL Reporting Services 2008? One problem I have seen is the inability to set the width of columns in a report when you you have several columns whose order is determined based on parameters.
    Lets say I have 2 columns in a report and two fields from the database which will populate those columns: 1 field that is varchar(5) and one which is varchar(50). If I do not know which column each field will go to until runtime how am I supposed to adjust the column width? Letting the column width be set by an expression would solve everything as I could pass the width in to the report. As it stands now, I would have to set each column's width to accomodate a field of type varchar(50) in order to avoid wrapping of data.
    You could say just create 2 reports, one for each case, but what if I had 15 fields? 20?
    Has anyone figured out how to dynamically set the width of a column? Will the width of a column be able to be set at run-time in SQL Server Reporting Services 2008 via expression or some other means?
    Questions, questions, questions.
    Chuck

    Ok slight update
    RDL xml files are used during deisgn of reports but when you deply they go into the Content column of a table called Catalog:
    SELECT [Name],
    CAST(CAST([Content] AS VARBINARY(MAX)) AS XML) AS reportXML
    FROM [Catalog]
    WHERE type = 2
    So I think this can be edited programmatically.  Widths can be found like this:
            <TableColumns>
              <TableColumn>
                <Width>9cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.02646cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.25cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.5cm</Width>
              </TableColumn>
              <TableColumn>
                <Width>3.5cm</Width>
              </TableColumn>
            </TableColumns>
     

  • How to set initial column widths for a table

    What I'd like to do is to control the initial column widths for a table.
    I'm building the table by using a class which extends AbstractTableModel. This class takes care of setting the headers and reading the data for the table.
    If I do the following:
    VarTableModel vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    I will see a table in my window. The widths of the columns are equal and are a function of the horizontal dimension of the window.
    I have tried to set the width of a column by doing the following:
    TableColumn aColumn;
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    But this has no effect on what gets displayed. I can force the widths that I want by using 'setMaxWidth' but this has the unfortunate side effect of not allowing the user to make the column wider if they want.
    What I'd like is a way to specify the widths of the columns when initially displayed and then let the user adjust to their liking.
    I'm sure that there is a way to do this, but I don't seem to understand where to intervene in the process to produce the effect that I want.
    Any help or suggestions will be greatly appreciated!

    Table.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    add this line and try ur codeThanks for the suggestion! Unfortunately, it doesn't seem to do the trick. Here is an abbreviated segment of my code:
    vtm = new VarTableModel(vi);
    JTable jt = new JTable(vtm);
    // we want a horizontal scrollbar, so turn resizing off
    // and we want to control column widths
    jt.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
    aColumn = jt.getColumn(vtm.getColumnName(0));
    aColumn.setWidth(40);
    . // same kind of thing for each column
    aColumn = jt.getColumn(vtm.getColumnName(4));
    aColumn.setWidth(400);
    JScrollPane jsp = new JScrollPane(jt);
    frame.getContentPane().add(jsp);
    frame.setVisible(true);
    If I do the above, the table gets displayed with each of the five columns the exact same width. So, the sizing of the columns is happening somewhere else despite turning auto resizing off.
    Where is that occurring and how can I intervene so that I can control the widths of the columns on initial display and still allow the user to adjust the widths if they so choose?

Maybe you are looking for

  • TS1368 Secured link to iTunes store failed

    can someone please tell me how to connect to the itunes store, i keep getting the message: Secured link to iTunes store failed.

  • Mandatory field quey

    i have a mandatory field in my report suppose i press exit or back button without entering data in mandatory field will that exetute or it will exit only when data is entered in that field is this also same in case of module pool screen

  • How to re-organize/reset the Info Structure S071?

    Hello Everyone, This is an extension to my previous thread [[No condition update from the sales orders exist - VK322 Message;]  How to re-organize the S071 info structure as I tried to re-organize it with Standard Program ' RV15F001' but it is not re

  • Switching from Ideas to Draw: A guide

    Putting this together. Breaking it into small chunks. Do you have any feedback on the features in part 1 of this guide? http://everlearning.com.au/blog/2014/adobe-ideas-to-adobe-illustrator-draw-switching-guide -part-1

  • Possible to "push" App updates to iPads?

    We want to hand out 30 iPads to students, preconfigured with purchased Apps at the beginning of the semester for the entire semester. Invariably there are frequent important updates to Apps. Is there any way to update the Apps remotely using the  iPh