[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: fooled by kchart (small numbers on y-axis and input for x-axis)
From:       Inge Wallin <inge () lysator ! liu ! se>
Date:       2005-04-06 23:32:42
Message-ID: 200504070132.44669.inge () lysator ! liu ! se
[Download RAW message or body]

On Wednesday 06 April 2005 23.08, Raphael Langerhorst wrote:
> Hi all,
>
> I justed wanted to brew together a chart example in KSpread and
> thought a sin-wave would be sth nice... uhm... take a quick look at
> the attachment, then read on.
>
> Basically two issues:
>
> 1) if the numbers are too small on the y-axis (from 0 to 1 for
> example), all the digits after the comma are displayed as well. I
> think if we don't put an option for that in I would at least
> recommend to cut at 4 digits after the comma (better: have 7
> significant (or whatever it is called) digits in total). This might
> need to be in the wizard, as it is the wizard that is used by KSpread
> to set up the chart (there might be other options than the wizard!!).

There are two problems with this case.  The first one you have already 
discovered, i.e. the excessive digits. I filed a bug about that one yesterday 
or the day before (I don't remember clearly). You can see it in bugzilla.

The second problem is that KChart doesn't handle numerical data on the X axis.  
The only type of value it can handle there is enumerations, i.e. a fixed 
number of strings.  You can work around this problem by making all values 
equidistant and thus make the chart look like a plot, although it is not.

I plan to do something about this for version 2.0, but it is not so simple 
since the basis for all this is the KDChart component which is the property 
of Klarälvdalens Datakonsult (Kalle Dalheimer).

> 2) The intention of including the first column is clear - I wanted the
> x values to be displayed on the x-axis. Well, if I run KChart in
> standalone mode I can go to the data editor and change the headings
> for the columns (or rows). Embedded in KSpread I can't (and I
> wouldn't like to). So a choice in some way to use the first row/col
> as "header text" would be good. Right now the x values are plotted as
> a data series as well!

Ah, right.  KChart autodetects if the first row or column contains text, and 
then automatically makes a header of them.  The problem arises if you want 
numerical data as header.  I will have to consider this and think about 
whether it is too late in the release cycle.  Probably not, but I am not 
sure.

> I CAN work around issue #2 by creating a third column between x and
> sin(x) that holds the x values as text and use this for the chart,
> then they are autodetected as being text and are used for the header.

> Maybe if Inge and Frederik(?) could discuss these and see if sth can
> be done (I might be good at documenting KChart, but I by far don't
> know the code as much as these two do - and some decisions might need
> discussions first as well). And I'm quite running out of time at the
> moment (will hopefully get a bit better at the weekend), but hope
> that this email can be of some use.

No need to discuss the first issue.  It is clearly a bug, and it will be 
fixed.  The other one, though...

 -Inge

-- 
Inge Wallin               | Thus spake the master programmer:               |
                          |      "After three days without programming,     |
inge@lysator.liu.se       |       life becomes meaningless."                |
                          | Geoffrey James: The Tao of Programming.         |
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic