Welcome Guest Search | Active Topics |

Different language support
Vince
#1 Posted : Wednesday, April 24, 2013 3:05:36 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Hi,

does jqChart support languages other than English? I'd like to have german names for months on x-axis-labels. Is that possible somehow?
Dragan
#2 Posted : Wednesday, April 24, 2013 2:55:19 PM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
Hi,

Before using jqChart you can add and translate in the language this code:

Code:
    // Internationalization strings
    $.fn.jqDateFormat.i18n = {
        dayNames: [
        "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat",
        "Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"
    ],
        monthNames: [
        "Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec",
        "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
    ]
    };

$('#jqChart').jqChart({

Best Regards,
Dragan Matek
jqChart Inc.
Vince
#3 Posted : Thursday, April 25, 2013 5:54:51 AM(UTC)
Rank: Member

Groups: Registered
Joined: 4/24/2013(UTC)
Posts: 16

Thanks: 0 times
Was thanked: 0 time(s) in 0 post(s)
Thanks for your answer.
I did, what you said, but it doesn't seem to have any effect on my chart. See: http://jsfiddle.net/AUT2E/1/
Dragan
#4 Posted : Friday, April 26, 2013 1:31:03 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
We'll investigate this a little better and I'll come back to you again.
Best Regards,
Dragan Matek
jqChart Inc.
Dragan
#5 Posted : Sunday, April 28, 2013 7:03:25 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
I've sent you an email with updated version of jqChart, which supports different languages. This functionality will be a part of our next release.
Best Regards,
Dragan Matek
jqChart Inc.
Dragan
#6 Posted : Sunday, May 26, 2013 9:13:08 AM(UTC)
Rank: Advanced Member

Groups: Administrators, DataVizJavaScript, jQueryChart, jQueryDV, MvcChart, Registered
Joined: 1/3/2011(UTC)
Posts: 483

Thanks: 0 times
Was thanked: 87 time(s) in 87 post(s)
jqChart version 3.7.0.0 comes with a large number of predefined language packs and settings for almost all popular languages. They are located in the installation package, in the /js/i18n folder. Language packs are in the form of javascript files, containing definitions for all strings in the chart that can be localized.

In order to use a particular language pack, you need to include the javascript language pack to the head of your page, after the jQuery library reference (since language packs depend on jQuery) and after referencing the jqChart javascript file.

Code:
<script src="../js/jquery.min.js" type="text/javascript"></script>
<script src="../js/jquery.jqChart.min.js" type="text/javascript"></script>
<script src="../js/i18n/chart.locale-xx.js" type="text/javascript"></script>


http://www.jqchart.com/jquery/chart/ChartFeatures/Localization
Best Regards,
Dragan Matek
jqChart Inc.
Users browsing this topic
Guest (4)
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

FlatEarth Theme by Jaben Cargman (Tiny Gecko)
Powered by YAF 1.9.4 | YAF © 2003-2010, Yet Another Forum.NET
This page was generated in 0.107 seconds.