I'm trying to use Telerik's RadChart (Spline) on WP7 to display the hourly temperature forecast. I'm having a hard time finding information on how to set the horizontal-axis to group by hour. The examples project contains a chart grouped by month, but when I change
DateTimeComponent="Month" LabelFormat="MMM yyyy"
to:
DateTimeComponent="Hour" LabelFormat="hh ddd"
I get a divide-by-zero error when it tries to build the axis.
Here is an example of what I'm trying to achieve:
NOAA Hourly Weather Forecast Graph
Anyone know of a tutorial or what I might be doing wrong?
Thanks
For the LabelFormat can you please try "h tt"? I don't have access to try right now, but that should work. The format would be "3 PM"
What solved it for me was to switch DateTimeCategoricalAxis to a DateTimeContinuousAxis. I found the examples in the Telerik samples app very helpful.
<telerikChart:DateTimeContinuousAxis
LabelFitMode="MultiLine"
LabelFormat="htt"
MajorStep="6"
LabelStyle="{StaticResource PhoneTextSmallStyle}"
MajorStepUnit="Hour"
PlotMode="OnTicks" />
Related
I have started using uipath for the past two days. I am reading from an excel sheet and loading to a web page and progress has been good.
I am stuck on the following scenario. I have a bs-datepicker that is used to enter dates. I have been able to get the date from the data in the sheet, separate the day,month & year parts. I have automated the selection of the month and year I have no issues.
The day is where the issue is. The control looks like the below,
On using the inspect tool on chrome, i see this for the 29th of May,
<td role="gridcell" class="ng-star-inserted" style=""><span bsdatepickerdaydecorator="" class="">29</span></td>
I see the following for 29th of April,
<td role="gridcell" class="ng-star-inserted"><span bsdatepickerdaydecorator="" class="is-other-month">29</span></td>
As you can see one difference between the two is that the span class is an empty string for 29th May which i am guessing is the error when i am getting when attempting to indicate on screen 29th of May,
In fact i get that same error when trying to indicate all elements for the active month, which is May in this case but no errors when indicating for the last month which is April.
Any tips on how i can get around this ?
Thank you
You can try switching between the UiFrameworks when grabbing your selectors:
Switching between Ui Frameworks
There is a high chance of it working with "Active Accessibility", since it's suited for legacy apps or apps that do not respond to the Default framework. Switch between all 3 to make sure.
If that doesn't work, you can try to grab the selector by navigating to the visual tree and manually going through all the nodes until you find your element.
you should use Dynamic selector because it seems that the selector changes when you change the month.
https://docs.uipath.com/studio/docs/dynamic-selectors
Or another option, you could use the "Click text" activity to click on the number of the month you need.
maybe you can change the node selector in uipath studio from class='is-other-month' to class='*'
Thank you everyone for your answers. What i ended up doing is using a try catch with a selector not found exception.
So the following will fall in the try,
<html app='chrome.exe' title='Add Employee | *' />
<webctrl aaname='{{FromDay}}' tag='SPAN' class='' parentclass='ng-star-inserted' />
And in the Catch,
<html app='chrome.exe' title='Add Employee | *' />
<webctrl aaname='{{FromDay}}' tag='SPAN' />
I want to create a new text field right under the SKU text field in the Product Information > General tab and populate it with the product's attribute set value. What I want can be seen in the picture below.
Unfortunately, for the past 4 hours I have been trying to locate the file that includes the code which produces the specific layout but so far I had no luck. I 'd be really grateful if anyone could give me a heads up.
Thank you for your time!
Enable backend path hints to find out which file it is. You can do it this way.
http://www.classyllama.com/development/magento-development/enable-templateblock-hints-in-admin-panel
Please note this is basically hacking. A better way to do it would be to follow something like this
http://www.marketingadept.com/blog/2014/01/magento-developers-add-a-custom-field-to-the-category-admin-page/
It's up to you, speed or do it the right way. Goodluck
Hi i am using javascript AmCharts and this one’s an AmSerialChart. Although we are showing dates in the category axis, the requirement is such that we cannot show them as dates but as strings. Keeping this in mind, I would need to show the chartcursor balloon text as the full date, for example ‘08/05/2013’. How can I achieve this?
i hope i undestood you right.
to let amcharts understand your date format specify dataDateFormat
http://docs.amcharts.com/3/javascriptcharts/AmSerialChart#dataDateFormat
then turn on parseDates in the categoryAxis to enable the date parsing
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#parseDates
you might want to format the category axis as well
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#minPeriod
http://docs.amcharts.com/3/javascriptcharts/CategoryAxis#dateFormats
and here the latest step to format the chart cursor which you've asked for
http://docs.amcharts.com/3/javascriptcharts/ChartCursor#categoryBalloonDateFormat
I hope that will help you :)
I'm trying to make an age calculator app with UIPickerView. I have the code to do the calculations, but how do I insert them to work with a UIPickerView?
The age calculation code is in an NSString
- (NSString *)age:(NSDate *)dateOfBirth
Any help is appreciated.
Thanks
The best place for learning how to accomplish that would be in apple's docs. Here is the link for the doc's. it also has 5 sample codes links inside it that is going to be of a great help to you. Here s the link:
http://developer.apple.com/library/ios/ipad/#documentation/UIKit/Reference/UIPickerView_Class/Reference/UIPickerView.html
Not a date picker,but should let user pick hour and minute,like 23:15.
Is there such a plugin yet?
My personal favorite is this one:
http://fgelinas.com/code/timepicker/
This works great and is really fast to work with - three clicks to set the time. And it's elegantly written, with code that closely resembles the jQuery UI date-picker approach and style.
It does minutes in 5-minute increments, however - not sure if that's precise enough for your purposes.
I use this one in my last project and it worked like a charm. You can use it with both date and time at the same time or separately.
check 10 jQuery Time Picker plugins: http://www.sitepoint.com/10-jquery-time-picker-plugins/
my favorite is http://tarruda.github.io/bootstrap-datetimepicker/
and this https://fgelinas.com/code/timepicker/
:D