Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > Jfreechart, symbolAxis and state encode

Reply
Thread Tools

Jfreechart, symbolAxis and state encode

 
 
etantonio
Guest
Posts: n/a
 
      03-09-2009
Good Evening for a chart concerning four three state I want to use
JFreeChart and symbolAxis,
my problem is that I've the following code values :

1 RX comando

2 PLL agganciato

3 PLL sganciato


while using symbolAxis it automatically give the following encode :

0 RX comando

1 PLL agganciato

2 PLL sganciato


my question is how to have an arbitrary code associated with the
labels ?
There's a way ??

Thanks,

Antonio
www.etantonio.it/en
 
Reply With Quote
 
 
 
 
John B. Matthews
Guest
Posts: n/a
 
      03-10-2009
In article
<e96b62ea-0711-4e66-a34a->,
etantonio <> wrote:

> Good Evening for a chart concerning four three state I want to use
> JFreeChart and symbolAxis, my problem is that I've the following code
> values :
>
> 1 RX comando
> 2 PLL agganciato
> 3 PLL sganciato
>
>
> while using symbolAxis it automatically give the following encode :
>
> 0 RX comando
> 1 PLL agganciato
> 2 PLL sganciato
>
> my question is how to have an arbitrary code associated with the
> labels ? There's a way ??


The SymbolAxis constructor takes an array of String values, which can
include any characters you want:

<http://www.jfree.org/jfreechart/api/...t/axis/SymbolA
xis.html>

I don't see how SymbolAxis would alter your choices. Perhaps an
<http://pscode.org/sscce.html> would help.

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
 
Reply With Quote
 
 
 
 
etantonio
Guest
Posts: n/a
 
      03-10-2009
the array of String values for me contains "RX comando" , "PLL
agganciato", "PLL sganciato"
from my engine arrive to this chart just the values 1,2,3 so I
couldn't pass it directly to the chart,
that would be nice if I could give to SymbolAxis a similar array that
tells the value associated with the corresponding label.

Antonio
www.etantonio.it
 
Reply With Quote
 
John B. Matthews
Guest
Posts: n/a
 
      03-10-2009
In article
<e06b0c20-8865-4f6e-9f2a->,
etantonio <> wrote:

I wrote:

<http://www.jfree.org/jfreechart/api/javadoc/org/jfree/chart/axis/SymbolAxis.html>

> the array of String values for me contains "RX comando" , "PLL
> agganciato", "PLL sganciato" from my engine arrive to this chart just
> the values 1,2,3 so I couldn't pass it directly to the chart, that
> would be nice if I could give to SymbolAxis a similar array that
> tells the value associated with the corresponding label.


I guess you could set the symbol for value zero to the empty string and
negate setAutoRangeIncludesZero. Tinkering with setAxisOffset might be
helpful, too. Also, try searching the demos for "SymbolAxis".

Of course, without seeing your <http://pscode.org/sscce.html>,
I'm guessing.

--
John B. Matthews
trashgod at gmail dot com
<http://sites.google.com/site/drjohnbmatthews>
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
State machine outputs and tri-state Grumps VHDL 2 02-13-2008 11:26 PM
difference between asp session state and asp.net session state. archana ASP .Net 0 03-13-2007 11:42 AM
ASP.NET 2.0 Session State and ASP.NET 1.1 Session State jnickfl1 ASP .Net 0 09-18-2006 03:23 PM
How can I encode/decode clock signal and data? MNQ VHDL 2 05-18-2004 05:12 AM
How to encode ASPX and ASCX files into DLL ASP .Net 3 11-05-2003 01:51 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57