kurtomerfaruk / wicked-charts

Automatically exported from code.google.com/p/wicked-charts
0 stars 0 forks source link

SeriesTypes that contain I does not render on Turkish locale #63

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. use a series type that contains 'I' character in its name eg. SeriesType.LINE
2. set the JVM language to Turkish with argument -Duser.language=tr
3. navigate to the page that contains the chart

What is the expected output? What do you see instead?

Chart is not rendered. javascript console shows the following error:

Uncaught Highcharts error #17: www.highcharts.com/errors/17 

What version of the product are you using? On what operating system?

wicked charts 1.5.0 and apache wicket 6.10.0

Please provide any additional information below.

In Turkish locale, the lowercase of character 'I' is 'ı' not 'i'. That causes 
SeriesType.SPLINE to be transformed into "splıne" in javascript code.

var chart11Options = {
  "chart" : {
    "renderTo" : "chart11",
    "type" : "splıne",
    "events" : {
      "load" : function(){}
    }
  },

Since "splıne" is not a recognized series type, higcharts throws exception #17 
and chart is not rendered.

As a workaround server language can be set to English.
-Duser.language=en

Original issue reported on code.google.com by ali...@gmail.com on 21 Dec 2013 at 9:50

GoogleCodeExporter commented 9 years ago
moved issue to github at https://github.com/thombergs/wicked-charts/issues/29

Original comment by tom.homb...@gmail.com on 21 Apr 2014 at 12:12