How to position x-axis dates in column chart

I have a column chart (see below) which can have one or more series where the x-axis of the series is a date common to each series.  How can I get the date label to appear in the center of each group of columns?  In the case shown
here, the date label would be exactly where the blue and yellow columns touch, but if there were just one column group it should appear below the center of each column, or if there were three series, it should appear in the center of the middle column,
and so on.   

Hello,
I have a problem similar like this. as
already comes the positioning of the
date in the middle.
But now with Format 
(double), notindateformat ("dd/
MM/YYYY").
What
can I do to have
the Format Date  on my Axis X?I use
the following function
foreach (DataPoint point in series1.Points)
//DateTime mydate = DateTime.FromOADate(point);
area1.AxisX.CustomLabels.Add(new CustomLabel(point.XValue - 1, point.XValue + 1, point.XValue.ToString(), 0, LabelMarkStyle.None));
//area1.AxisX.CustomLabels.Add(new CustomLabel(point.XValue - 1, point.XValue + 1, point.XValue.ToShortDateString(), 0, LabelMarkStyle.None));
thank you
for your help

Similar Messages

  • How to get length of data on column with long datatype

    How to get length of data on column with long datatype without using pl/sql block

    ...another reason not to use LONG datatype for columns.
    Oracle advises to switch to LOB columns instead
    SQL> create table t
      2  (x long)
      3  /
    Table created.
    SQL> insert into t values (rpad ('x', 10000, 'x'))
      2  /
    1 row created.
    SQL> alter table t
      2  modify x clob
      3  /
    Table altered.
    SQL> desc t
    Name                                      Null?    Type
    X                                                  CLOB

  • X Axis label of Column Chart

    Hello,
    I am Plotting column chart based on the data present in datagridview;Column 1(having string Data Type) as my X axis value and Column Y as my Y axis value.On Column chart click event i am fetching x axis and y axis co-ordinates of my column chart and displaying
    in Label on my form.But when i click it shows "0" as my x axis cordinate for the clicked column.
    As my x axis is having labels as 06:00:00-07:00:00,07:00:00-08:00:00,..........
    Below is image of my application
    f Chart1.Series(0).Name = "Daily Data" Then
    'Chart1.Series(0).XValueType = ChartValueType.Time
    Chart1.Series(0).Points(result.PointIndex).XValue.ToString()
    'xval = xval.AddHours(Chart1.Series(0).Points(result.PointIndex).XValue)
    Label4.Text = "Selected Coordinates are: " & Chart1.Series(0).Points(result.PointIndex).XValue.ToString & ", " & Chart1.Series(0).Points(result.PointIndex).YValues(0).ToString("f2")
    End If
    Else
    If result.ChartElementType <> ChartElementType.Nothing Then
    Dim elementType As String = result.ChartElementType.ToString()
    Label4.Text = "Selected Element is: " & elementType
    End If
    End If

    You need to get this example from Microsoft. It is a c# project code you just run it in Visual Studio. It shows most everything you can do with a chart. It shows the vb code when you run it and click the vb tab. Near the bottom of the left tree is Appearance
    - Labels etc. Also under data types there are date and time examples. This link is also in the forum faqs at the top of the chart forum posts.
    Chart examples.
    I think you need to tell the chart to use datetime for the labels but I am not sure how and I am not too good with them but that is why I do this to learn things. I would just look in the chart examples from the link I show. That is how I answer most of
    the questions here.
    Can you reproduce your problem using the simple example from the other question? Otherwise I cant really do much.
    Also, most times when you make a simple example you will find the problem or at least understand it better.
    So take a look and come back if you cant get it I then I will try too.

  • In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    In the new Numbers, How can I get a 2D stacked column chart to display only 1 column?

    This is one of those things that I find really strange about Numbers 3. The control for what you want to do is not where anyone would expect to find it.
    Select the Chart
    Click on Edit Data References
    Look at the bottom left corner of the Numbers window. It should say "Plot Columns as Series" or "Plot Rows as Series"
    Click on it and change it to the other

  • Display last 12 months data in column chart

    Hi All,
    I have one  dashbord  requirement in list box i have (example:):  "oct-11" i need to display previous 12 mnth data in column chart anybody help in excel formula how to display last 12 mnths based on list box selection.
    example:  if i select oct-11 from list box i need to display in chart like
    nov-10 dec-10 nov-10...................................oct-11
    please provide how to write in logic in excel

    Hi Shankar,
    Try this formula in excel : DATE(YEAR(A1),MONTH(A1)-1,DAY(A1))
    A1 will be your cell which is the destination of your List box. & then drag it till 12 months.
    If you are not having day from your list box then manually enter 1 in any cell and map that cell in place of A1 for day.
    HTH.
    Neeraj..

  • How do you make your data into a chart?

    How do you make your data into a chart?

    Dick,
    Your table should look like this:
    You're looking at 1 Header Row and 1 Header Column. Headers are shaded by default. Adding a shading to a regular column doesn't make it a header. Use the Table Inspector.
    When you Select the data and Insert a Table, you will get this:
    Got it?
    Jerry

  • Offset in Category axis when in Column chart : Numbers

    Hi,
    Is there a way we can offset x-axis in a column chart? To give an example, I want to plot x=1,2,3 vs y=-1,0,1.
    However, Instead of x-axis starting at '0', I want to have it start at -2. In this way, I can have an increasing order graph rather than inverting one.
    I know it can be done in excel, but any idea if it can be done in Numbers?
    Thx,
    Swapnil.

    Not something that Numbers will do without a little coercion and subterfuge).
    Modification to the Table:
    Column C added to contain the 'shifted' values for Y.  =B+2
    Column C selected as values to be charted. Category labels are picked up from Column A (a Header column).
    Modifications to the chart:
    Value labels on Y axis NOT displayed.
    Y axis Max set to 3.5, Steps set to 7.
    Text box added to contain labels to match bar heights to original (unshifted) values.
    Line shape added to mark Y value of 0.
    Regards,
    Barry

  • How to add two X Axis in the Column chart?Need Help

    Hi,
    I have a requirement to add two X axis in the SSRS column chart.Can someone please help how to add two X axis. I tried the secondary axis for horizontal axis but current x axis is shifting to other side, second X axis is not coming.
    Regards
    Jon

    Hi Jon,
    According to your description, you want to add secondary X axis for one series in a column chart, right?
    The secondary axis is useful when comparing two value sets with two distinct data ranges that share a common category. In Reporting Services, it’s not supported to create two X axis for one series. We can create secondary X axis when there are two series
    in a column chart. As we tested in our local environment, we can add secondary X axis for specific series. Please refer to the screenshots below:
    So I would like to know what’s your exact needs about creating two X axis for one series. If possible please share some detail information about your data and expected looking of the chart.
    Reference: Plot Data on a Secondary Axis (Report Builder and SSRS)
    If you have any question, please feel free to ask.
    Best regards,
    Qiuyun Yu

  • How to display axis labels on both x and y-axis of a column chart

    hi,
     i have an urgent requirement of having axis labels on both x and y axis
    In x-axis i got it by sorting order also but in y-axis i'm unable to do
    i need in y-axis ,my column values are L1,L2,L3,----L10these shuold display in y-axis in sorting order and 0 in axis should remain as it is ..........how to take the interval ....? as of now i'm using Auto
    my y-axis values shud look like 0,L1,L2,L3,L4,----L10can anyone get perfect solution
    thanx in advance
    lucky

    Hi Lucky,
    Per my understanding that you want to display the values(Column1) like  "L1,L2,L3....L10" which comes from the "Series group" in the Y-Axis label and keep the row group in "Category group" to
    display in the x-axis and Numric column(1,2,3,4) in the "Value", right?
    Gernerally the lable display in the y-axis is automatically based on the value of the Numric column in the "Value" and it default is numbric labels.
    I have tested on my local environment and in your scenario, i suggest to hide the axis lable of the y-axis and create an tablix to only show the one column contains the values (L1,L2,L3,L3) to display in the place of the hidden y-axis label.
    Detais information about to design an new y-axis label ae below for your reference:
    Create an tablix to display only the row group of the "Column1" ( for the
    Column1 may have duplicate values, you can create parent row group for this column and hide the detail column by setting the "Column Visibility").
    Right click the y-axis to select the "Vertical Axis Properties" and select the "Labels" on the left pane to check the "Hide Axis labels"
    Select the Chart Area and in the properties set value of left=0 under the CustomPosition:
    Set the border style=None for both the Chart and Column1's row group
    Drag the tablix at the position near the hidden y-axis and set the size of both the chart and the tablix to make the value in the tablix row group(Column1) to be align with the y-axis label:
    Right click the "Chart legend" to delete or hide the legend
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • How to insert in long data type column

    I would like to know how could I insert data in a long data type column.
    Thanks

    Don't use LONG, use CLOB instead. You can write to CLOBs using the DBMS_LOB package.
    Cheers, APC

  • How to scale data in column chart?

    Hi,
    I have a column chart who's data ranges from 638 to 4,263,000. Due to this extreme range, the lower valued columns are hardly visible
    Is there a way by which I can scale up the lower values or scale down the higher values, ultimately resulting in a chart with visible columns to the naked eye. Here's the screen shot for your reference:
    (Click on the image to enlarge)
    Appreciate you help...
    -Deepak

    Hello,
    Thank you so much for that hint   That one prompted me to use a PlotSeries instead of a ColumnSeries. And PlotSeries clearly shows up all the items, irrespective of how low or how high the value is. Looking at it, the user can drill down further, by clicking on that item.
    Screenshot:
    -Deepak

  • Historical data and Column Chart

    Hello
    I am trying to retrive historical data from the repository and show it as a column chart through flex UI Implementation.
    My Metric is defined as below and it has two columns defined as KEY columns
    <Metric NAME="EnergyConsumptionCost" TYPE="TABLE" USAGE_TYPE="VIEW_COLLECT" FORCE_CACHE="TRUE">
    <Display>
    <Label NLSID="flex_energyCosumptionCost">Energy Consumption Cost Metric</Label>
    </Display>
    <TableDescriptor>
    <ColumnDescriptor NAME="DeviceID" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_DeviceID">Device ID</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="DeviceName" TYPE="STRING" IS_KEY="TRUE">
    <Display>
    <Label NLSID="flex_deviceName">Device Name</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="EnergyCost" TYPE="NUMBER" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_EnergyCost">Energy Cost</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="CurrencySymbol" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_Currency">Currency</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="EnergyConsumption" TYPE="NUMBER" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_energyConsumption">Energy Consumption</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="Unit" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_Unit">Unit</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="PerUnitRate" TYPE="NUMBER" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_PerUnitRate">Unit Rate</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="DateCollected" TYPE="STRING" IS_KEY="TRUE">
    <Display>
    <Label NLSID="flex_DateCollected">Metric Collection Date</Label>
    </Display>
    </ColumnDescriptor>
    <ColumnDescriptor NAME="ExtraDetails" TYPE="STRING" IS_KEY="FALSE">
    <Display>
    <Label NLSID="flex_extraDetails">Extra Details</Label>
    </Display>
    </ColumnDescriptor>
    </TableDescriptor>
    <QueryDescriptor FETCHLET_ID="OSLineToken">
    <Property NAME="scriptsDir" SCOPE="SYSTEMGLOBAL">scriptsDir</Property>
    <Property NAME="classpath" SCOPE="GLOBAL">$CLASSPATH:%scriptsDir%/EnergyDashboardEjbBeanService-Client.jar</Property>
    <Property NAME="command" SCOPE="GLOBAL">java -cp %classpath% com.avocent.trellis.oem.plugin.energy.insight.proxy.EnergyDashboardEjbBeanServicePortClient GraphRequest %DeviceID% %StartDate% %EndDate% </Property>
    <Property NAME="startsWith" SCOPE="GLOBAL">ext_result=</Property>
    <Property NAME="delimiter" SCOPE="GLOBAL">|</Property>
    </QueryDescriptor>
    </Metric>
    I am implement the UI now using flex programming and below is the code of my page contoller class
    public class emersontrellisflexHomePageController extends ActivityController
    private var page:emersontrellisflexHomePage;
    [Bindable]
    public var metricDataArrayCollection:ArrayCollection;
    public function emersontrellisflexHomePageController()
    override public function init(pg:IActivity):void
    super.init(pg);
    page = pg as emersontrellisflexHomePage;
    // get EnergyConsumptionCost metric to get energy consumption cost information
    var procMetric:Metric = ApplicationContext.getTargetContext().getMetric("EnergyConsumptionCost");
    var procSelector:MetricSelector = procMetric.getSelector(['DeviceID', 'DeviceName','EnergyCost','CurrencySymbol','EnergyConsumption','Unit','PerUnitRate','DateCollected','ExtraDetails']);
    procSelector.getData(energyConsumptionCostHandler, MetricCollectionTimePeriod.CURRENT, page.getBatchRequest());
    // structure of the data is as follows:
    // MetricResultSet -- contains an Array (results) of all the datapoints. If the
    // time period is LAST_* then this will be multiple datapoints for each timestamp.
    // results[] -- each row in results is a TimestampMetricData datapoint.
    // TimestampMetricData -- a datapoint that includes a timestamp and then a table (data) of
    // data for all keys included in the sample. If the metric does not have any keys
    // then the table will only have a single row.
    // data -- the data table, each row is a KeyMetricData object
    // KeyMetricData -- the data row, it includes a MetricKeyValue (metricKey) that
    // identifies the key associated with that row (if there is one). All other
    // data is available via a direct reference by column name, e.g. data[n]['ColumnId']
    public function energyConsumptionCostHandler(procResult:MetricResultSet, fault:ServiceFault):void
    if(fault != null)
    MpLog.logError(fault, "Get Processes");
    return;
    if(procResult!=null)
    var dataLength:int = 0;
    var dp:TimestampMetricData = procResult.results[0];
    if(dp != null)
    dataLength = dp.data.length;
    var metricData:EcecObject ;
    var data:KeyMetricData;
    metricDataArrayCollection= new ArrayCollection();
    for(var i:int=0; i<dataLength; i++)
    data= dp.data;
    Alert.show("Data["+i+"]="+dp.data[i].toString());
    metricData= new EcecObject();
    metricData.deviceID=dp.data[i]['DeviceID'];
    metricData.deviceName=dp.data[i]['DeviceName'];
    metricData.energyCost=dp.data[i]['EnergyCost'];
    metricData.currencySymbol=dp.data[i]['CurrencySymbol'];
    metricData.energyConsumption=dp.data[i]['EnergyConsumption'];
    metricData.unit=dp.data[i]['Unit'];
    metricData.perUnitRate=dp.data[i]['PerUnitRate'];
    metricData.dateCollected=dp.data[i]['DateCollected'];
    metricData.extraDetails=dp.data[i]['ExtraDetails'];
    metricDataArrayCollection.addItem(metricData);
    page.setModel("metricDataCollection",metricDataArrayCollection);
    } //End of function energyConsumptionCostHandler
    } //End of class
    In the handler code I am populating the ArrayCollection with the objects of class "EcecObject" which is defined by me and looks as below
    package mpcui
    [Bindable]
    public class EcecObject
    public function EcecObject()
    public var deviceID:String;
    public var deviceName:String;
    public var energyCost:Number;
    public var currencySymbol:String;
    public var energyConsumption:Number;
    public var unit:String;
    public var perUnitRate:Number;
    public var dateCollected:String;
    public var extraDetails:String;
    public function toString():String
    // TODO Auto Generated method stub
    var result:String= "DeviceId="+deviceID+" DeviceName="+deviceName+" EnergyCost="+energyCost+" CurrencySymbol="+currencySymbol+" EnergyComsumption="+energyConsumption+" Unit="+unit+" unitRate="+this.perUnitRate+" dateCollected="+dateCollected+" ExtraDetails="+extraDetails;
    return result;
    Sample below shows the data populated in the object of type "EcecObject"
    (mx.collections::ArrayCollection)#0
    filterFunction = (null)
    length = 15
    list = (mx.collections::ArrayList)#1
    length = 15
    source = (Array)#2
    [0] (mpcui::EcecObject)#3
    currencySymbol = ".25"
    dateCollected = (null)
    deviceID = "KWH"
    deviceName = (null)
    energyConsumption = NaN
    energyCost = NaN
    extraDetails = "d6ffcc59-ec5a-424d-a950-dcf3944059c9"
    perUnitRate = NaN
    unit = "Dollar"
    So if we see in the attribute "currencySymbol" the "perUnitRate" is poulated even if my handler code has the following statement
    metricData.currencySymbol=dp.data[i]['CurrencySymbol'];
    Want to know why the data is swaped in most of the cases. Any correction to be done in the handler code.
    Appreciate your help.
    Regards
    Anand.

    The design depends on how much data you are having. If you have lot of data its better to use them separately.
    When you create a cube you load historical data from source systems through a full load and later you will be doing delta loads to process new records.
    As for as the data is conccerned a cube can contain both historical and transaction data.

  • How to display labels ( vertically) in a column Chart

    Hi,
          As per my requirement I want to show  labels inside the column charts & they must be aligned verically
      say ABC is id i want display i want A
                                                          B
                                                           C
        I have tried with Column Charts properties like showvertically =" true" &  extendLabelToEnd="true".But i am not getting them vertically aligned .Is that something else also must be done.
    Regards
    Kalavati singh
    [email protected]

    Take a look at this blog: http://gerardnico.com/wiki/dat/obiee/presentation_variable
    Try it out by providing a default format.
    Thanks,
    BIPuser

  • Vertical axis labels on column chart

    I'm trying to get the x-axis labels oriented vertically on a 3D column chart, so that the labels don't overlap each other. With 2D column charts I can do this via "format>chart>format x-axis" but these options are grayed out with the 3D column chart. Is there any way to get vertical orientation on the axis labels with this chart type???

    It's usually not necessary to make the axis labels vertical to keep them from overlapping in a 3D chart since when you rotate the chart the labels are vertically offset. But you're right, there's no other control for this.
    Jerry

  • How to change bottom axis SharePoint PerformancePoint analytic chart dynamic

    Hi,
    I have created SharePoint PerformancePoint analytic chart. By default I am showing the chart for last 4 weeks data. But data source would contains last 8 weeks data.
    My end users wants to select the week as per their required.
    Is it possible to change the bottom axis?
    Could anybody tell?
    Thanks & Regards
    Poomani Sankaran

    Hi Poomani,
    According to your description, my understanding is that you want to show the SharePoint PerformancePoint analytic chart for last 4 weeks data.
    For your issue, you need to consider use MDX expression.
    The following MDX expression displays the last 4 fiscal years from current fiscal year. When the fiscal year changes so does the filter data. Note that for this MDX expression to work, the date dimension must have
    current attributes defined.
    (EXISTS([Date].[Fiscal Year].Children,[Date].[Current Fiscal Year].&[Y]).Item(0).LAG(-4)
    : EXISTS([Date].[Fiscal Year].Children,[Date].[Current Fiscal Year].&[Y]).Item(0))
    Reference:
    https://bennyaustin.wordpress.com/2013/01/15/sharepoint-mdx-expressions-for-performancepoint-filters/
    Best Regards,
    Eric
    Eric Tao
    TechNet Community Support

Maybe you are looking for