Bug 121982 - Support for database items as data source in charts
Summary: Support for database items as data source in charts
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Chart (show other bugs)
Version:
(earliest affected)
6.1.3.2 release
Hardware: x86-64 (AMD64) All
: medium enhancement
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Chart-Enhancements
  Show dependency treegraph
 
Reported: 2018-12-08 15:06 UTC by Markus Elfring
Modified: 2020-02-28 10:39 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Markus Elfring 2018-12-08 15:06:31 UTC
Content from spread sheet cells can be used for diagrams.
I would find it helpful to support data processing for diagram display also without manually copying content from external data sources to these cells.

I would prefer to work with values from specific databases directly.

Would you like to choose from the following items?
* Database table
* Database view
* Customised SQL query
Comment 1 Buovjaga 2019-08-16 11:43:55 UTC
It is already possible: https://ask.libreoffice.org/en/question/33047/is-it-possible-to-create-a-chart-based-on-data-taken-directly-from-base/

Is there anything that is actually missing?
Comment 2 Markus Elfring 2019-08-16 12:20:40 UTC
(In reply to Buovjaga from comment #1)
> https://ask.libreoffice.org/en/question/33047/is-it-possible-to-create-a- chart-based-on-data-taken-directly-from-base/

The mentioned answer points the possibility out to import (and copy) information into an other application before the desired data can be used, doesn't it?


> Is there anything that is actually missing?

Yes. - Can direct data exchange become more convenient for better database usage?
Comment 3 Alex Thurgood 2019-08-16 12:53:27 UTC
@Markus: there is already bug 108913 - is that what you are looking for ?
Comment 4 Markus Elfring 2019-08-16 13:02:43 UTC
(In reply to Alex Thurgood from comment #3)
> @Markus: there is already bug 108913 - is that what you are looking for ?

No. - The issue “Charts/Diagrams in Calc as an own table/tab” affects an other user interface area.
Comment 5 Alex Thurgood 2019-08-16 13:05:28 UTC
@Markus : as for supporting from within Calc access to a query or a table, this is already present :


Menu Data > Dynamic Table (Data pilot) > Selection: registered datasource
Select your registered database
Choose your Table/Query/SQL (LO parser)/Native SQL 
Choose your datasource
Comment 6 Alex Thurgood 2019-08-16 13:10:42 UTC
Or alternatively, create a Report from within an ODB file, design a chart to insert in your report and save as spreadsheet ?
Comment 7 Markus Elfring 2019-08-16 13:58:17 UTC
(In reply to comment #5)
> Menu Data > Dynamic Table (Data pilot) > Selection: registered datasource
> Select your registered database
> Choose your Table/Query/SQL (LO parser)/Native SQL 
> Choose your datasource

I imagine that such data source configuration can become more convenient for usage with charts.


(In reply to comment #6)
> Or alternatively, create a Report from within an ODB file, design a chart to
> insert in your report and save as spreadsheet ?

Related software improvements can be also interesting.
Comment 8 Buovjaga 2019-08-16 13:58:57 UTC
Markus: when replying, please describe in much more detail what you want to achieve. Preferably with a sketched image or images of how you envision the process to look like. This makes it easier for Calc/Base gurus to respond.
Comment 9 Markus Elfring 2019-08-16 14:21:25 UTC
(In reply to Buovjaga from comment #8)

I suggest to improve the support for data selection by charts a bit more.
A diagram can present information from databases or spread sheet cells, can't it?
This input configuration will influence system preferences in corresponding dialogues and context menus.
Comment 10 Buovjaga 2019-08-16 14:44:50 UTC
(In reply to Markus Elfring from comment #9)
> (In reply to Buovjaga from comment #8)
> 
> I suggest to improve the support for data selection by charts a bit more.
> A diagram can present information from databases or spread sheet cells,
> can't it?
> This input configuration will influence system preferences in corresponding
> dialogues and context menus.

All right, but please describe how this should happen exactly. It's not useful to say "I want this area to be improved, but have no idea how".
Comment 11 Markus Elfring 2019-08-16 14:54:40 UTC
(In reply to Buovjaga from comment #10)

A chart needs information about data rows.
How would you like to choose if the required input and settings are provided by a database or spread sheet cells (of a document)?
Comment 12 Buovjaga 2019-08-16 15:09:01 UTC
(In reply to Markus Elfring from comment #11)
> (In reply to Buovjaga from comment #10)
> 
> A chart needs information about data rows.
> How would you like to choose if the required input and settings are provided
> by a database or spread sheet cells (of a document)?

Please just describe
1) what is lacking in Alex's proposal in comment 5
2) what you would do to change things for the better
Comment 13 Markus Elfring 2019-08-16 15:35:15 UTC
(In reply to Buovjaga from comment #12)

I suggest to take another look at the specification of data ranges.
https://help.libreoffice.org/6.3/en-US/text/schart/01/wiz_data_range.html

How do you think about to refer to database items there instead of spread sheet cells (of a document)?
Comment 14 Buovjaga 2019-08-16 16:55:21 UTC
(In reply to Markus Elfring from comment #13)
> (In reply to Buovjaga from comment #12)
> 
> I suggest to take another look at the specification of data ranges.
> https://help.libreoffice.org/6.3/en-US/text/schart/01/wiz_data_range.html
> 
> How do you think about to refer to database items there instead of spread
> sheet cells (of a document)?

Ok, I guess this is as far as we can pry open this cryptic clamshell of a topic. Let's ask design team, if they have any bold visions regarding this or if they will just throw it in the trashbin.
Comment 15 Heiko Tietze 2019-08-21 08:43:20 UTC
AFAIU, the request is like in bug 122011 where Markus wants to access external datasources directly in the chart creation wizard respectively data range of the chart without adding it to the spreadsheet.
Comment 16 Heiko Tietze 2019-08-27 07:19:38 UTC

*** This bug has been marked as a duplicate of bug 122011 ***
Comment 17 Eike Rathke 2019-10-04 09:59:31 UTC
This is not a duplicate. It would need a completely new implementation to support Base queries.
Comment 18 Heiko Tietze 2019-10-05 07:34:27 UTC Comment hidden (off-topic)
Comment 19 Markus Elfring 2019-10-05 09:13:41 UTC
(In reply to Heiko Tietze from comment #18)
I guess that your feedback can become more helpful if the user interface will be clarified for the input of database query parameters according to the proposed data processing functionality.