Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8638005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T10:37:02+00:00 2026-06-12T10:37:02+00:00

I use jqplot , and I have date into my x-axis. I use the

  • 0

I use jqplot, and I have date into my x-axis.

I use the DateAxisRenderer plugin but I want to translate the date to my current locale.

For example, for english

Jan 2012 
Feb 2012...

and for french

Jan 2012
Fév 2012...

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T10:37:04+00:00Added an answer on June 12, 2026 at 10:37 am

    A bit of explanation

    jqPlot uses jsDate internally: http://sandbox.kendsnyder.com/date2/

    jsDate has built-in localization support and locale detection.
    This capability, however, is limited to a few ,pre-configured languages, on internal regional table (see 2.).

    1. For the lucky ones

    Since in my version of jqPlot (v1.0.4) the French language is included in this table (maybe a gift from the authors) all you have to do is simply setting the lang attribute on your <html> tag:

    <html lang="fr">
    

    Et voilà…

    2. Foreigners

    If you want to add your own missing language at runtime you can use these instructions:

    $(document).ready(function(){
        // Add a new localization
        $.jsDate.regional['it'] = {
            monthNames: ['Gennaio','Febbraio','Marzo','Aprile','Maggio','Giugno','Luglio','Agosto','Settembre','Ottobre','Novembre','Dicembre'],
            monthNamesShort: ['Gen','Feb','Mar','Apr','Mag','Giu','Lug','Ago','Set','Ott','Nov','Dic'],
            dayNames: ['Domenica','Lunedi','Martedi','Mercoledi','Giovedi','Venerdi','Sabato'],
            dayNamesShort: ['Dom','Lun','Mar','Mer','Gio','Ven','Sab'],
            formatString: '%d-%m-%Y %H:%M:%S'
        };
        // Do not forget to call
        $.jsDate.regional.getLocale();
    });
    

    Do not forget to call $.jsDate.regional.getLocale() to refresh internal settings and to set the <html> tag accordingly.

    Mine looks like:

    <html lang="it">
    

    That’s all…

    If you aren’t able to control the markup for the html tag, you can set it with

    document.documentElement.setAttribute('lang', 'it');
    

    It doesn’t work to set lang of an intermediate element, like a surrounding div.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to use jqplot, but when I follow the http://www.jqplot.com/docs/files/usage-txt.html Nothing seems to
I am trying to use jqplot http://www.jqplot.com/tests/cursor-highlighter.php . I have successfully installed it in
Use Eclipse Classic with ADT plugin. Tried to make project from existing example of
I try to use jqplot for drawing an graph. So i modified this example
i'm using jqplot 1.0.0b1_r746. i want to display some time periods using the date
I have a question about ticks in x-axis. I work with jqPlot 0.9.7 My
I have been using jqplot for display charts on my web applications. But now
I am trying to use JQPlot to do my chart rendering but I am
use C#,want to upload excel file on google doc. bellow syntax use to upload
I'm just playing with jqplot for a few hours but I couldn't find how

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.