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 8714505
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:36:46+00:00 2026-06-13T05:36:46+00:00

I am able to plot the graph with 30 datapoints and all the points

  • 0

I am able to plot the graph with 30 datapoints and all the points show in the graph. And the graph looks cramped. I was thinking like show datapoints in the multiple of 5. Say I have 30 points, my graph should have like [0, 5, 10, 15, 20, 25, 30] as axis points. Mathematically when we plot graph say 1 unit = 5points.
I am not sure of how to do it. Can someone point me in a right direction atleast from documentation when method to look at.

var options = {
        series: {           
            lines: {
                show: true,
                lineWidth: 1,                   
                fillColor: {colors:[{opacity: 1},{opacity: 1}]}, 
                align: "right" 
            }           
       },
       grid: {
            show: true,
            markings: [{xaxis: {from: 0, to: 5}}]
       },      
       xaxis:{
            tickFormatter:timeTickFormatter,
            tickSize : 1
       },
       yaxis: { 
            max:24
       }
    };

function timeTickFormatter(val,axis) {

        var returnDate =new Array();    
        <% for (String dateValue: pasDays) { %>

            returnDate.push("<%= dateValue %>");

        <% } %>

        return returnDate[val];
    }

$(document).ready(function () {
        $.plot($("#HoursChart"), [ { label : "Work Hours", data: <%= workHrsDaily %>  },
                                                                  { label : "Idle Hours", data: <%= idleHrsDaily %> } ], options);

    });

UPDATE:
I change the tickSize to 5 and it shows 5 datapoints :)!!

  • 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-13T05:36:47+00:00Added an answer on June 13, 2026 at 5:36 am

    Pretty sure you can do something like: ticks: [0, 5, 10, 15, 20, 25, 30]

    From the Flot API Documentation:

    If you want to completely override the tick algorithm, you can specify
    an array for “ticks”, either like this:

    ticks: [0, 1.2, 2.4]

    You may need to take away the tickSize: 1 property, because this is setting the interval of the ticks to one. If you set the tickSize to something like 6 (for a length of 30), this would give you an interval at 5, 10, 15, 20, 25, 30

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

Sidebar

Related Questions

I would like to be able to plot the profile deviance for a parameter
I am able to displaying multiple Y-axis using core plot, but my problem is
I have created a scatter graph with three plot spaces. One for two y-axis
I am playing with RGooglemaps, and have been able to plot lines on a
i have a plot looking like this: However the lines are overlapping quite a
I have a dataset with 100 000 datapoints which I have to plot on
I have a facetted plot like this: ggplot(mtcars, aes(x = hp, y = mpg))
I am working on graph for an iPad application, I am able to plot
I am not quite sure if core-plot is able to do this. I have
I have been able to use gnuplot to plot graphs as I run my

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.