You are not logged in.
how it's possible to change the format of the period selector to "DD/MM/YYYY" ?
Offline
At the moment there is no way to control it (thank you for pointing, I will fix this issue), however the default format is the same as you'd like to have.
Offline
Hi Marcelionis
has there been any update on this topic. Our client want to have this in format [DD/MMM/YYYY].
I scanned the API docs but I can't see any settings there.
Thanks
Regards,
Rad
Offline
You can set date fields to period selector and customize as you need:
<amcharts:PeriodSelector position="left" width="160">
<amcharts:startDateField>
<mx:DateField formatString="DD/MMM/YYYY"/>
</amcharts:startDateField>
<amcharts:endDateField>
<mx:DateField formatString="DD/MMM/YYYY"/>
</amcharts:endDateField>
Offline
Hi Marcelionis
thanks. This settings works, I've come across another problem.
I'm looking to display format such as 31 May 2011 so I set it to <mx:DateField formatString="DD MMM YYYY"/>. What I'm getting looks like this 18 02022011 which isn't what I'm expecting.
Is it possible to display month as a short text?
Thanks
Offline
Hi Marcelionis
have you had a time to look into this? - Displaying date format such as "09 Jun 2011" in period selector inputs.
Let me know if this is doable or not so we can discuss this with our client.
Thanks
Regards,
Rad
Offline
Sorry, this slipped out. It seems that mx:Date field doesn't support strings in dates, only numbers. I am afraid we can't change this.
Offline
Hi Marcelionis
we've discovered that when using custom date format settings such as:
<amcharts:startDateField>
<mx:DateField formatString="DD/MM/YYYY"/>
</amcharts:startDateField>
<amcharts:endDateField>
<mx:DateField formatString="DD/MM/YYYY"/>
</amcharts:endDateField>we've lost the ability to manually type in a date into periodSelector startDateField and endDateField (only entry via via calendar pop up is available).
Is this a bug or is there a setting involved to gain this feature again?
Thanks
Regards,
Rad
Offline
You should set editable="true" for the DateField.
Offline
Hi Marcelionis
one more thing with DateFields we got from our client.
I setup minPeriod (in categoryAxesSettings) to "hh" which automatically adds an additional box with time to startDateField and endDateField.
Is there a way to display only the DateFields without the hour fields boxes while keeps minPeriod settings with hh ( minPeriod="hh" )?
Thanks
Regards,
Rad
Last edited by radimkoudela (2011-06-28 10:11:07)
Offline
Hi qemm
thanks for response. I was browsing your API docs and come across timeFieldsEnabled setting.
<amcharts:PeriodSelector ... timeFieldsEnabled="false" ... >
This has done the trick.
Regards,
Rad
Last edited by radimkoudela (2011-06-29 05:46:01)
Offline
OK, glad you found it. I must've misunderstood your question.
Offline
Hi,
How can i to set to calendar (PeriodSelector) the first day of week?
is it possible?
thank you.
Offline
Yes, it is. Add this to PeriodSelector mxml:
<amcharts:startDateField>
<mx:DateField firstDayOfWeek="1"/>
</amcharts:startDateField>
<amcharts:endDateField>
<mx:DateField firstDayOfWeek="1"/>
</amcharts:endDateField>
Offline
© amCharts | Forum engine: PunBB