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.

Similar Messages

  • 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 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 edit axis labels in CR charts for crosstab report?

    I have a crosstab report created from tha table where column names havie sort order attached to it as 01_Jul FY10, 02_AugFY10 etc and I am able to remove it  in format field dialog box using dispaly string formula editor. So I am to display columns in specified order. but when I create chart , axis labels display column name with sort order. Is there a way I can remove sort order from column names while displaye in the chart and the legend entry box.
    Help on it is highly appreciated.
    Fizza

    Carl answered this one already

  • 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 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

  • Change the Axis Labels of a Chart

    The Chart-Series are generate through AS (Multiple PlotSeries and 1 LineSeries). I managed to Update the Visuell Areas (in this example to manipulate Vertical Axis (minimum/maximum values to be shown).
    No I have 3 Questions about to manipulate this Chart with AS3:
    I would like to remove nearly all "Ticks" and "Labels" from the Axis. At the End only the min/max and 0-Label-Value on the vertical Axis should be displayed. And on the vertical Axis, I would like only to have the min/max-Label and 100-Value.
    The Chart-Lines (in the Screen above) only 2 Lines should be visible. v-Axis = 100 and x-Axis=0 (just as a Cross over the Chart)
    The Linear Serie (just a Value of a Funktion like x=y*2) should have no Tooltip if you go MouseOver-it. And the Legend of this Serie should not be displayed in the Legend. How can I delete the Legend, and how can I preserve a DataTip over this LineSerie?
    Hopefully you did understand my bad english.
    Thanks for any Tips
    Pawel

    Hi,
    1. IAxis interface have labelFunction (see docs for details and parameters for it). You can check the value to be labeled and return empty string if you don't want to show this value in axis. Axis you get from chart.getAxis(name). But there is not any warranty that always 0 will be shown. You showl implement your own IAxis to show only specific values. (Or search it in internet)
    2. You should remove all these grid lines and create CartasianDataCanvas this lines at 0 and 100 and put it to annotationElements of the chart.
    3. If you don't want to see all data from chart in Legend you should create an array with legend data only from serieses you want to see. Chart has a property legendData from all serieses. You can filter this array or create new array with legendData from serieses you want to see. And set this array as a dataProvider to Legend.
    Hope, this helpful.

  • 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 Axis labels for Line charts in Business Graphics

    Hi
    I am planning to do the Business Graphic example using Line chart.As part of this
    i didn't clearly understand what is the perpose of Series,Points,categorys?
    if i want to set the Labels at X-axis and y axis ,then how to do that?Baiscally i want to put time related data as X-axis label(20min,30min,60 min etc).Please help.
    is there any good example to understand the concept?
    Thanks
    Prasad

    Hi Bachier
    Thanks for your repsonce.I had seen the example you suggested.but there is no answer for my question.How to set the x-Axis,Y-axis Labels.I had done example for "line chart".But i have same problem:
    Hi
    I am trying to do example on "line chart" using Business graphics in my webdynpro application.
    In the Context i created Node "A" under which i created "B".then it has  value attributes xValue,yValue.Then in View i created BG UI element >Series>point-->NumericValue(for xValue) ,NumericaValue(yValue).Now in view init() method i had initialized values to x and y. some output is coming.but i want to know how to set the X-Axis Label,y-Axis Labels.in X-Aix Label i want to mention time in hrs i.e 8.00,8.30AM,9.00AM,9.30AM etc.as part of y-axis labels i want to mention numeric values( .2,.4,.8,2.0 etc). Please tell me how to set this X-Axis,y-Axis labels.at every 30min(8.00Am,8.30AM etc) user enter quality data(i.e .2 etc) then i want to generate chart.Please help in this regard.i will give very good points
    Thanks
    Prasad

  • CR Enterprise - Custom y-axis labels for line chart

    Hi
    I have data with a discrete status (STATUS-1...STATUS-5) per day, like
    Feb 1: STATUS-1
    Feb 2: STATUS-2
    Feb 3: STATUS-2
    Feb 4: STATUS-1
    Feb 30: STATUS-4
    Feb 31: STATUS-1
    This series I'd like to render in a date axis line chart with the daily status ordinals (1-5) on the y-axis.
    Now I wonder how I can label the y-axis ticks with the respective STATUS text instead of the ordinal.
    Unfortunately, the option "Total (Y) Axis/Axis/AxisLabels/Display Label" is disabled due to the value's numeric nature.
    How can I manually overwrite y-axis labels or map them to custom text?
    Thanks. Jens

    HI Jens,
    Have you tried creating a formula and using that in 'Show Values' section of the chart?
    Formula:
    "STATUS-" & {Numeric_field}
    -Abhilash

  • Axis label texts for charts

    Hello,
    I am using a query with horizontal drillacross as a basis for a chart and 1 key figure.
    The axis legends are showing up as "CHAR/KYF" where CHAR is the characteristic value in the columns and KYF is the key figure column description.
    Is there a way to influence the automatic labelling so that it shows only the characteristic value?
    Having fixed texts is not an option because we don't know in advance what the characteristic values will be.
    Many thanks,
    Pieter

    Can any body suggest a solution to this issue.
    We are having same problem....

  • Secondary Axis Label in Combination Chart

    Hi Everyone,
    I´m trying to make a Pareto Diagram with a Combination Chart, but I need a secondary Y axis for my cumulative frecuency. Is that possible???
    Thanks in advance.

    Hi Jessica,
    It is possible to do  Pareto Diagram with combination chart.Do like this take one measure on Primary Axis and select second measure and enable the secondary axis and map the values.
    Regards,
    Ramana
    Edited by: RamanaReddy Varra on Jul 27, 2011 11:38 AM

  • Line Charts - X-axis Labels as function of X-axis value

    Hi,
    1) Is there a way to put X-Axis labels in line chart as function of X-axis values ?
    For instance, X-axis values are in minutes and I need to show those as Hours.
    I'm having Hours as separate column as well, but when its selected as X-axis value column, the line graph is disturbed.
    2) Also, how to specify the length/range of X-axis ?
    For instance, in dataset if I've x-axis values from 0 to 5 hours but still want to show on graph the X-axis till 8 hours.
    Thanks for your help in advance.
    Regards,
    Sumit

    Hi Sumit,
    I have tried following things with proper datetime format may be help you.
    1> in your applet code you can add below param
    <PARAM NAME="XAxisDateFormat" VALUE="H">
    it will display your levels in hours for more details please refer Date and Time Format under query template in MII help.
    2>In your Query template under date range you can select duration and duration unit.
    for 8 hour span you can select Duration = 8 and in duration unit = H
    I have tested it for a tag query, may be i did not understand your issue properly but hope it helps you!!!
    Regards,
    Manoj Bilthare

  • X axis labels in Charts

    Hello All,
    I am using column charts in my Xcelsius Dashboard (Xcelsius 2008 - SP5). The X-axis labels are too lengthy, it is displaying vertically. The requirement is to display the names horizontally and wrap the text. I cannot use label component as workaround as the names are populated dynamically. Any suggestions are appreciated.
    Thanks,
    Sowrabha

    Hi,
    This is common issue for all our developers, i will suggested you some workaround please try and let me know.
    1. If series values are less in horizontly then try to use bar chart and see whether it suits for you.
    2. Use the range slider to display only first 4 or 3 values, so that you can get the entire text without shrinked, later on they can slide to see all values.
    3. try to apply the below given logic, i haven't dont this. I thought it would be helpful for you.
    Handling long Y-Axis Labels in Bar charts in less space...
    Hope it helps!!!
    --SumanT

  • Programatically shifting X-axis labels in chart section of a .bqy document.

    Hi all,
    We would like to programatically change some properties like height, width for X-axis labels of a chart in the chart section of the .bqy (Interactive Reporting Studio) document. We don't find the existing properties fit our requirement.
    So, I request all the experts in "Interactive Reporting" to help us out as early as possible!
    Thanks,
    Natesh.

    Thanks for your reply.
    You're right, it shows the day data when I click on the month. Fine, but if it shows the daily data, why doesn't it show the date as well.
    As I tried to explain, the data are correct, but the labels are wrong or insufficient. Why do I have only 'Jun-2010' below the bar of a day?
    I investigated a little bit further and found that the behaviour changes depending on which month column out of the time dimension I choose.
    If I choose 'Month (MON-YYYY)' I get this label on the month chart and on the day chart (the drilled down chart), nothing more.
    But if I choose 'Month (YYYYMM)' from the same dimension in the month chart by changing the query in answers, I get an additional label in the day chart showing the day
    as YYYYMMDD.
    I need to influence this behaviour, but don't know how. I thought the drill down relationship comes from the Business Modell layer, but I don't see how to change things there.
    Any idea?
    Regards,
    Knut

Maybe you are looking for

  • Fonts not showing correctly

    Certain characters ie: - ' " and even some font styles, ie: italic don't show correctly in Safari, v. 2.04 (419.3) on some websites. I then try the same website in FireFox and everything displays correctly. Do I have fonts missing, not installed. I o

  • K8TNeo Raid config - where is it stored, MB or Hard drive?

    I have a MSI K8T Neo with the VT8377 SATA Controlller set up for Raid 1 (Mirror) using the VIA Raid tool, on which are two identical disks partioned into C and D; the C drive being the XP system disk. I am using (the excellent) Drive Snapshot tool to

  • FCP/DVDSP/Compressor .ac3 Low Audio

    Can somebody tell me why .ac3 files come out so low compared to .aif when sent to compressor from FCP, even though I boosted the levels in FCP. I need more level in ac3 format for DVDSP.

  • Has anyone tried this software?

    http://www.imtoo.com/ipod-movie-converter.html

  • IMovie 11 - set duration for still pictures in project

    Hi, I work with iMovie 11 since recently and I never had any problem with previous versions. Now I'm doing my first project in iM 11 and it just ignores my request for setting durations to still pictures. When I set the duration in 'Project Propertie