kurtomerfaruk / wicked-charts

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

Turkish Locale Character Problem while Json Serializing Enum AxisType #20

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
First of all thanks for this great wrapper.
In your Appspot Demo, AxisType.DATETIME serializes as "datetime" but in turkish 
locale it becomes "datetıme". because lower case of 'I' in turkish language is 
'ı' not 'i'. Also I am sending the generated json.

Good luck...

var charts49Options = {
  "chart" : {
    "renderTo" : "charts49",
    "animation" : true,
    "type" : "column",
    "xAxis" : {
      "type" : "datetıme",
      "title" : { },
      "wickedChartsId" : 18
    },
    "yAxis" : {
      "title" : {
        "text" : "Total fruit consumption"
      },
      "min" : 0,
      "stackLabels" : {
        "enabled" : true,
        "style" : { fontWeight: 'bold', color: 'gray' }
      },
      "wickedChartsId" : 19
    },
    "legend" : {
      "align" : "rıght",
      "backgroundColor" : "#ffffff",
      "borderColor" : "#cccccc",
      "borderWidth" : 1,
      "floating" : true,
      "shadow" : false,
      "verticalAlign" : "top",
      "x" : -100,
      "y" : 20
    },
    "toolTip" : {
      "formatter" : function(){return '<b>'+ this.x +'<\/b><br/>'+this.series.name +': '+ this.y +'<br/>'+'Total: '+ this.point.stackTotal;}
    },
    "plotOptions" : {
      "column" : {
        "dataLabels" : {
          "color" : "#ffffff",
          "enabled" : true
        },
        "stacking" : "normal"
      }
    }
  }

Original issue reported on code.google.com by Muhammet...@gmail.com on 30 Jan 2013 at 4:00

GoogleCodeExporter commented 9 years ago
Hi,

thanks for raising this issue. The locale should definitely not influence the 
rendered JSON. However, I seen unable to reproduce this problem (I switched my 
browser's locale to turkish, but the JSON was rendered fine). 

Do you have any other hints as to how to reproduce this problem? You probably 
know of potential problems with the turkish locale better than me :).

Regards,
Tom

Original comment by tom.homb...@gmail.com on 31 Jan 2013 at 9:28

GoogleCodeExporter commented 9 years ago
Hi again, thanks for replying. 
I think it is not about browsers locale but rather Java Locale because in my 
machine Locale.getDefault() returns tr_TR. 
I checked out source code and changed the line 
jgen.writeString(value.toString().toLowerCase()) in LowerCaseEnumSerializer to 
...toLowerCase("new Locale("en")"); and it worked... 
I hope this would be helpful. :)
Best wishes...

Original comment by Muhammet...@gmail.com on 31 Jan 2013 at 10:25

GoogleCodeExporter commented 9 years ago
Thanks a lot! I will fix this in the next version!

Original comment by tom.homb...@gmail.com on 1 Feb 2013 at 8:56

GoogleCodeExporter commented 9 years ago
fixed in revision r237 will be included in next release

Original comment by tom.homb...@gmail.com on 10 Feb 2013 at 9:35

GoogleCodeExporter commented 9 years ago

Original comment by tom.homb...@gmail.com on 10 Feb 2013 at 9:35

GoogleCodeExporter commented 9 years ago
included in 1.4.3 which was released today

Original comment by tom.homb...@gmail.com on 3 Mar 2013 at 5:46