How do I change time axis labels?
I have a few data plots that show some parameter on the y-axis versus time on the x-axis. The data spans several months (sometimes years). Currently my x-axis shows date labels for the left and right side of the plot and one value inbetween (happens to be 12-31-09). How can I set the axis format to show a label for each month or each major grid interval? Anything would be an improvement over just one date label.
Thanks
Try right-clicking directly on the axis label and select your desired style. You must click right on the label text or you will not get the correct pop-up menu.
Using LabVIEW: 7.1.1, 8.5.1 & 2013
Similar Messages
-
How can i change the column label text in a alv table display
how can i change the column label text in a alv table display??
A similar kinda of question was posted previuosly where the requirement was the label text was needed and following below code was given as solution :
<i>* declare column, settings, header object
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
DATA: lr_column_header type ref to CL_SALV_WD_COLUMN_HEADER.
get column by specifying column name.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME1' ).
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( ' ' ).</i>
My specific requirement is i have an input field on the screen and i want reflect that value as the column label for one of the column in the alv table. I have used he above code with slight modification in the MODIFYVIEW method of the view since it is a process after input. The component gets activated without any errors but while run time i get an error stating
<i>"The following error text was processed in the system CDV : Access via 'NULL' object reference not possible."</i>
i have checked in debugging and the error occured at the statement :
<i>lr_column = lr_column_settings->get_column( 'CURRENT_YEAR' ).</i>Please can you provide me an alternative for my requirement or correct me if i have done it wrong.
Thanks,
SuriI found it myself how to do it. The error says that it is not able to find the reference object i.e it is asking us to refer to the table. The following piece of code will solve this problem. Have to implement this in WDDOMODIFYVIEW method of the view. This thing works comrades enjoy...
DATA : lr_cmp_usage TYPE REF TO if_wd_component_usage,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_cmdl TYPE REF TO cl_salv_wd_config_table,
lr_col TYPE REF TO cl_salv_wd_column.
DATA : node_year TYPE REF TO if_wd_context_node,
elem_year TYPE REF TO if_wd_context_element,
stru_year TYPE if_alv_layout=>element_importing,
item_year LIKE stru_year-i_current_year,
lf_string TYPE char(x),
DATA: lr_column TYPE REF TO cl_salv_wd_column.
DATA: lr_column_header TYPE REF TO cl_salv_wd_column_header.
DATA: lr_column_settings TYPE REF TO if_salv_wd_column_settings.
Get the entered value from the input field of the screen
node_year = wd_context->get_child_node( name = 'IMPORTING_NODE' ).
elem_year = node_year->get_element( ).
elem_year->get_attribute(
EXPORTING
name = 'IMPORT_NODE-PARAMETER'
IMPORTING
value = L_IMPORT_PARAM ).
WRITE L_IMPORT_PARAM TO lf_string.
Get the reference of the table
lr_cmp_usage = wd_this->wd_cpuse_alv( ).
IF lr_cmp_usage->has_active_component( ) IS INITIAL.
lr_cmp_usage->create_component( ).
ENDIF.
lr_if_controller = wd_this->wd_cpifc_alv( ).
lr_column_settings = lr_if_controller->get_model( ).
get column by specifying column name.
IF lr_column_settings IS BOUND.
lr_column = lr_column_settings->get_column( 'COLUMN_NAME').
set Header Text as null
lr_column_header = lr_column->get_header( ).
lr_column_header->set_text( lf_string ).
endif. -
How do you change a "row Label" in form central into an interactive text box?
How do you change a "row Label" in form central into an interactive text box? I need to leave some of the row labels plank so that people using the form can add some of their on labels. Can this be done and if so how?
I'm not quite sure I understand your question. Respondents (fillers of the form) cannot edit the label of a field.
Randy -
How can I change time machine settings?
How can I change time machine settings? I only want Time Machine to backup my Home Folders and the items on the desktop. Currently, it's backing up more files which overwhelm my backup drive. How do I get it to back up Home/Desktop ONLY?
knarfrh60Also, see selecting items to exclude from the backup here...
http://support.apple.com/kb/HT1427
You may also find this Link of interest...
Time Machine Tutorial -
How may I change my slide labels?
I would like to rename my slides, and I am sure there must be a very easy answer to this that I am overlooking. From all the online research I have done to find the answer to this question, it seems that while I am in filmstrip view, I should simply be able to enter a label in the Name: text box at the top of the Properties tab. However, when I do so, nothing changes. Can anyone help me to understand what I am missing?
I did close and reopen the filmstrip - it had no effect. I do not know how to reset the workspace, but I did save and close the project, then open it again. Still no change to the labels to the left in filmstrip view.
-
How to display PIE chart Axis label horizontally?
Hi
Currently my PIE chart axis label is displying in 2 lines. How make it to display in one line?
Thank youhi,
For Pie chart there will be no X-axis or Y-axis terms generally.
Label/Text could be one of the following.
Title?
or Sub Title?
or Foot note?
Right Click -> Format Title . Reduce the font size such that it fits into a single line.
Regards,
Vamsee -
How can I change Time data with List Entry Screen ?
Hi expert.
I transfer Time Data (Infotype 2003) via CAT6.
When I go to transaction PA61 and click List Entry icon.
Record is display and cannot change data.
If I wanna change data.I must to click Choose Icon one by one record.
How can I change data with List Entry Screen?
ps. If record create via PA61. I can change data with List Entry Screen.
I can't change with record that create via CAT6.
Best Regards.have u tried to change your time entry through CAT2 tcode, ithink if u have created profile for time entry then it should allow you to change and you can use esc otherwise, its generally the standard profile given by SAP. but is 4 one user
hope this helps
guds -
How to give individual horizontal axis label to two stacked bar of cartesian chart
I have a cartesian chart showing no. of xyz and no.of abc for a particular period of time. i.e. two bars corresponding to xyz & abc for Jan, and then again two bars corresponding to xyz & abc for Feb, and so on. I have used label function to give label to horizontal axis such that labels look like "xyz abc (nextLine) Jan" ,"xyz abc (nextLine) Feb".
But the issue is that the label is not centre alligned to the respective bars, i.e. xyz is not coming under xyz bar and abc is not coming under abc bar. the whole label's alignment is somewhere in between the two bars on x-axis. And i want to have label centre alligned to their respective bars, i.e 'xyz' should be centre alligned to 'xyz' bar, and 'abc' label should be centre alligned to 'abc' bar, along with the time period value. I have tried giving space in between "xyz" and "abc" but the problem occurs when data varies.They again don't seems centre aligned. I want x-axis label for each bar along with the categoryaxis's category field.
So,is there any way to achieve such functionality??Could you post a screenshot of your current output and maybe a mockup of the desired output?
-
Text variables. How do you change time zone?
I am trying to set up a text variable for modification time. However, it is not registering my time zone. How do you change the time zone?
Sorry. I have worked it out that it is in my timezone!!
-
How to avoid repeatition of axis labels in Graphs in WebI 4.0??
Hello All,
I am working with graphs in WebI 4.0. In category axis, the labels are being repeated thrice ,twice and so on based on the filter which I have placed according to my requirement.. I need them to be displayed only once. I have used axis label delete factor from Format chart. But then it solved only partial problem. Appreciate your help.
Regards,
Anila.plz
try this
create a one more vertical table
and check that location-text and location-key are some .
we think it would be like this
location-text location-key
can 01
cbg 02
det 03
txc 04
txc 05
bec of different key and some description the axis is getting repeating. -
How do I rotate chart axis labels?
Trying to rotaet chart axis labels for the x-axis, but would like to know the same for the y-axis too. Know the solution for a text box, but doesn't seem to work for the axis labels.
Hi Martin,
The solution is the same for X and Y labels. Select the labels and then set the rotation angle, either in the Format Bar or in the Metrics Inspector.
Jerry -
How can I change the axis so I could see the four quadrant of my image?
Hi!
I Have been graphying a polinomial with the intensity graph, but I couldn't see the four quadrants of my image,I can only see the first one, how could I fixed?I no longer have LabVIEW 5.1 so I only attach a code image of my suggestion.
Front panel:
(1) Change the offset for x and y axis of the intensity graph to -100.
(2) Do the same for the x-axis of the waveform graph.
Block Diagram:
(1) What is the reason for the second sequence? It seems to just repeat the same code. (I removed it).
(2) I am currently graphing "W" instead of "I", because "I" only produces noise (probably because my input parameters are way off). I am sure that with better input values, "I" will make a nice graph.
(3) subtract 100 (the axis offset) from each iteration terminal to get the input variables to go from -100 to 99 (If you want -100 to 100, you need to set the loop count to 201).
(See attached i
mages. Let me know if this is clear)
LabVIEW Champion . Do more with less code and in less time .
Attachments:
FP_2Dpoly.gif 49 KB
BD_2DPoly.gif 24 KB -
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
PawelHi,
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. -
In PSE 12 how can I change my watermark label eg colour of text from black to white etc
I have created a watermark to use in batch processing from RAW to jpg but I don't like the watermark and want to change some elements eg change the text from black to white but every time I change it, PSE changes it back to black - how do I fix this?
This isn't Lion-specific. I had the same prob changing OS a couple of years ago and now again changing to Lion on a new laptop.
Changing the Date and Time settings would do it (you'd think) but it doesn't. It was always embedded in International (now Language &Text). It seems to be a bug though as I've Custom Edited selecting 12-hr clock with am/pm and have the same issue. On-the-hour has no am/pm or zeros.
I've learnt not to waste too much energy on it once it doesn't make logical sense as it's generally a bug.
I'm loving Lion though - even unexpectedly using the natural scrolling.....but I digress.... -
Where the graph values show 1 I want them to change to text (different each time). Is there a way to make this happen?
Also, is there a way to connect the series markers - circles - with solid lines even if there is no data in the table. E.g from 1.5 to 2.5 a solid line even if there is no data under 2.0?
Is there perhaps a better way altogether to achieve this graph?
Thanks.HI Mick,
Sounds like something that could be achieved with no "graph" at all.
This is a combination of a table and an inserted shape (line). Enter the dates as the goals are achieved. Here's a second image of the same 'chart,' taken before the table grid was whited out:
Regards,
Barry
Maybe you are looking for
-
Standard report to check transfer quantity from inspection lot
Hi All, Upon good receipts using movement type 101, an inspection lot will be created automatically in the system. After that, inspection results and usage decision will be done. So at the end, if I display that particular inspection lot using QA03,
-
I got a (-1) error while updating my iphine 3gs.
how to update my iphone with out getting -1 error help me how to update it
-
How do I identify all of the methods in a .jar file?
I'm compiling a small java application that includes two .jar files in the classpath. Is there any way I can identify all of the objects and methods in the .jar files?
-
Iphone battery not lasting 1 day
iphone 4 battery, one and one-half years old not lasting throught even 1 day. turned off and on, no help.
-
Urgent: Some how I deleted the rebate agreements. What is the impact on FI?
Hi Some how i deleted the rebate agreements. Some are in active, hence system generated reversal postings. Pls let me know what is the impact on FI? What steps need to be done. Appreciate your immediate help. Thanks, Gupta.