View unanswered posts | View active topics It is currently Wed May 29, 2024 6:41 pm



Reply to topic  [ 6 posts ] 
ManualScale for X-Axis 
Author Message
pChart user
pChart user

Joined: Wed Jun 27, 2012 1:22 pm
Posts: 5
Post ManualScale for X-Axis
Hello,
I have X-Series (abscissa) values that run from 0.2 to 4.0, e.g.
0.2, 0.4, 0.6, 0.8, 1.0, 1.2, 1.4, 1.6, 1.8, 2.0................4.0

So for x=0.0 a value is never defined, the range always starts at 0.2.

However I want the scale ticks to show up at 1.0, 2.0, 3.0, 4.0

But, when I set labelskip to 4, the scale will show 0.2, 1.2, 2.2, 3.2

So I would like to force the scale range from 0 to 4, so it should show the ticks at
0.0, 1.0, 2.0, 3.0, 4.0

Using drawScale you can pass the SCALE_MODE_MANUAL to force the range for the Y-Axis, but as far as I can tell it is not possible to set the range for the X-Axis (the series passed with setAbscissa). Is this possible?

Or is there another way to force the ticks on the whole numbers?

Thanks,
Michiel


Fri Jun 29, 2012 11:40 am
Profile
New pChart user
New pChart user

Joined: Thu Jul 05, 2012 5:50 pm
Posts: 1
Post Re: ManualScale for X-Axis
Michiel,

I am also new to pChart and have just deployed for the first time. A client asked for a range of all of the days in a month (1 - 31) on the X-Axis. So far, I have not been able to figure out how to get a range of integers on the X-Axis and cannot even tell him if it's possible or not. The spam reply to your post is a pretty good indication that this forum is not closely monitored.

Orville


Thu Jul 05, 2012 5:56 pm
Profile
pChart user
pChart user

Joined: Mon Jul 09, 2012 9:23 pm
Posts: 4
Post Re: ManualScale for X-Axis
Hi!!

Michiel and orville i have the same problem!!

Have you finf a solution?


THANX


Wed Jul 11, 2012 7:52 pm
Profile
pChart user
pChart user

Joined: Wed Jun 27, 2012 1:22 pm
Posts: 5
Post Re: ManualScale for X-Axis
Hi Orville & pawnies20,
Unfortunately I haven't figured it out, yet. When I check the FAQ on http://wiki.pchart.net/doc.faq.scaling.html, about SCALE_MODE_MANUAL, it literary says:

Quote:
You may want to configure a static scale. In this mode you‘ll have to provide the MIN and MAX values of each X-Axis. These values are provided through an array.


This talks about X-Axis, but I wonder if this is a typo, because if I understand the rest of the text it refers to thy Y-Axis and also the examples only seem to refer to the Y-Axis.
I also checked the source code and it only seems to refer to the Y-Axis.

Hopefully someone reads this and can correct me if I'm wrong.

The only thing I can think of at the moment is to manually adapt the Abscissa series to contain the range of values that you want....

Michiel


Thu Jul 12, 2012 12:34 pm
Profile
pChart user
pChart user

Joined: Wed Jun 27, 2012 1:22 pm
Posts: 5
Post Re: ManualScale for X-Axis
I browsed through the forum some more and found this post with a possible solution that might work:

http://wiki.pchart.net/forum/viewtopic.php?f=1&t=29350


Thu Jul 12, 2012 3:08 pm
Profile
New pChart user
New pChart user

Joined: Mon Jul 08, 2013 4:37 am
Posts: 2
Post Re: ManualScale for X-Axis
Hey Mich, One of my friend have experience with pChart, I'll definitely discuss your problem with him and will inform you soon.

_________________
shaheenair.org | howtomakejelloshots.org | how to check a paper for plagiarism for free


Mon Jul 08, 2013 6:38 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 6 posts ] 

Who is online

Users browsing this forum: Google [Bot] and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron