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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T23:25:40+00:00 2026-06-11T23:25:40+00:00

Struggling a bit here, because if I’ve understood the docs correctly (though I’ll admit

  • 0

Struggling a bit here, because if I’ve understood the docs correctly (though I’ll admit is probably not the case!), this should be working.

I’m using a Coldfusion CFC to grab data and return it in JSon format. Data is returned as 2 numeric values, i.e 6 & 1, 3 & 2 and so on. The ‘x-axis’ value is a day, i.e day 1, day 2 etc.

Currently, the x-axis is displaying it as 2.5, 5, 7.5 etc. I need this to change so its displayed as it’s returned – i.e 1,2,3 etc.

This is the JS I have right now, which executes without error, but doesn’t display the chart as intended…

$(function() {
$.getJSON("/com/stats.cfc?method=getPageViews&returnformat=json", {}, function(data) {
 $.plot($("#chart"), [ data ],
    {
        lines:{show:true},
        points:{show:true},
        tickSize:1, 
        tickDecimals:0
    })

})
});

Pointers much appreciated!

  • 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-11T23:25:41+00:00Added an answer on June 11, 2026 at 11:25 pm

    Purely by luck, I’ve figured out the correct syntax. For the benefit of anyone search for this, here’s the updated working code;

    $(function() {
        $.getJSON("/com/stats.cfc?method=getPageViews&returnformat=json", {}, function(data) {
            $.plot($("#chart"), [ data ],
            {
                lines:{show:true},
                points:{show:true},
                xaxis: 
                    {
                        tickSize:1, 
                        tickDecimals:0
                    }
            })
    
        })
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This should seem to be a fairly straightforward question, but I'm struggling a bit.
I am not a programmer, I am struggling a bit with this. I have
I've been struggling a bit with this tiny problem - and I'm quite sure
I am struggling a bit with a compiler warning. Here the code: const char
Struggling a bit here... My view controller adheres to following protocols In my init
I'm struggling to get what i think should be a simple bit of jquery/javascript
I'm struggling a bit with traversing in jQuery. Here's the relevant markup: <ul id=sortable
I'm struggling a bit on the best way to do this with as little
Struggling a bit on this... I'm using crontab for a lot of todo list
struggling a bit to get the following to work : I'm trying to merge

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.