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

  • Home
  • SEARCH
  • 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 924057
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T19:17:22+00:00 2026-05-15T19:17:22+00:00

Im using jquery flot for displaying chart …. i want to show dual x-axis…..

  • 0

Im using jquery flot for displaying chart …. i want to show dual x-axis….. both have same values.. how can i show this? Please help

Regards
Nisanth

  • 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-05-15T19:17:22+00:00Added an answer on May 15, 2026 at 7:17 pm

    please check the code this is source of an example by plugin check the link tooo
    http://people.iola.dk/olau/flot/examples/multiple-axes.html – Thank you @Mads Skjern for correcting the link

    this is a sample part of the example by the jflot dev team

    <html> 
     <head> 
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 
        <title>Flot Examples</title> 
        <link href="layout.css" rel="stylesheet" type="text/css"></link> 
        <!--[if IE]><script language="javascript" type="text/javascript" src="../excanvas.min.js"></script><![endif]--> 
        <script language="javascript" type="text/javascript" src="../jquery.js"></script> 
        <script language="javascript" type="text/javascript" src="../jquery.flot.js"></script> 
     </head> 
        <body> 
        <h1>Flot Examples</h1> 
    
        <div id="placeholder" style="width:600px;height:300px;"></div> 
    
        <p>Dual axis support showing the raw oil price in US $/barrel of
        crude oil (left axis) vs. the exchange rate from US $ to € (right
        axis).</p> 
    
        <p>As illustrated, you can put in secondary y and x axes if you
        need to. For each data series, simply specify the axis number.</p> 
    
    <script id="source" language="javascript" type="text/javascript"> 
    $(function () {
        var oilprices = [[1167692400000,61.05], [1167778800000,58.32], [1167865200000,57.35], [1167951600000,56.31], .... some data..... [1219874400000,115.59], [1219960800000,115.46], [1220306400000,109.71], [1220392800000,109.35], [1220565600000,106.23], [1220824800000,106.34]];
        var exchangerates = [[1167606000000,0.7580], [1167692400000,0.7580], [1167778800000,0.75470], ... some data..[1220738400000,0.70120], [1220824800000,0.7010], [1220911200000,0.70050]];
    
        $.plot($("#placeholder"),
               [ { data: oilprices, label: "Oil price ($)" },
                 { data: exchangerates, label: "USD/EUR exchange rate", yaxis: 2 }],
               { 
                 xaxis: { mode: 'time' },
                 yaxis: { min: 0 },
                 y2axis: { tickFormatter: function (v, axis) { return v.toFixed(axis.tickDecimals) +"€" }},
                 legend: { position: 'sw' } });
    });
    </script> 
     </body> 
    </html> 
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

No related questions found

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.