2014-10-20 47 views
0

我正在使用剑道散布图与平移和缩放选项和区域设置。我已将语言环境设置为bg-BG,并且当我放大或缩小日期/时间格式无法正常工作时。剑道散布图不显示正确的日期格式

例如bg-BG Month'year格式正常,这是正确的。 当我放大格式更改为月/日格式时,按照区域设置不正确。 放大再次格式更改为HH:MM,它是根据lcale格式一错再错,

Here is the fiddle with the issue

我设置的地点以这种方式

kendo.culture('bg-BG');  

如果剑道图表放不下tomlocale那么它本身不应该第一次工作。 任何帮助appreaciated。在此先感谢

回答

0

如果剑道说明你错了日期格式可以chceck日期模式为你的语言是这样的:

kendo.culture('bg-BG'); 
console.log(kendo.culture()); 

,然后如果你想明确设置日期模式在你的图表做它像这样:

... 
categoryAxis: { 
    labels: { 
     dateFormats: { 
      minutes: culture.calendar.patterns.T, 
      hours: culture.calendar.patterns.g, 
      days: culture.calendar.patterns.d, 
      weeks: culture.calendar.patterns.d, 
      months: "MM" + culture.calendar['/'] + "yyyy", 
      years: "yyyy" 
     }, 
    }, 
....