Added support for visualizing the graphs using Stacked Line, Bar, and Stacked Bar charts in the query tool. Fixes #7486

This commit is contained in:
Akshay Joshi
2022-06-30 12:38:48 +05:30
parent b1f6664292
commit b92e2fcfc9
8 changed files with 160 additions and 43 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 90 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 23 KiB

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 80 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 87 KiB

View File

@@ -360,8 +360,7 @@ from the drop-down menu to select all the columns.
* Graph Type
Choose the type of the graph that you would like to generate. Currently only
*Line Charts* option is there, but more charts will be added soon.
Choose the type of the graph that you would like to generate.
.. image:: images/query_graph_type.png
:alt: Query tool graph visualiser graph type
@@ -382,7 +381,8 @@ Click the *Download* button on the button bar to download the chart.
Line Chart
==========
The *Line Chart* can be generated by selecting the X-axis and the Y-axis and
The *Line Chart* can be generated by selecting the 'Line Chart'
from the Graph Type drop-down, selecting the X-axis and the Y-axis, and
clicking on the 'Generate' button. Below is an example of a chart of employee
names and their salaries.
@@ -393,6 +393,40 @@ names and their salaries.
Set *Use different data point styles?* option to true in the :ref:`preferences`,
to show data points in a different style on each graph lines.
Stacked Line Chart
==================
The *Stacked Line Chart* can be generated by selecting the 'Stacked Line Chart'
from the Graph Type drop-down, selecting the X-axis and the Y-axis, and
clicking on the 'Generate' button.
.. image:: images/query_stacked_line_chart.png
:alt: Query tool graph visualiser stacked line chart
:align: center
Bar Chart
==========
The *Bar Chart* can be generated by selecting the 'Bar Chart'
from the Graph Type drop-down, selecting the X-axis and the Y-axis, and
clicking on the 'Generate' button.
.. image:: images/query_bar_chart.png
:alt: Query tool graph visualiser bar chart
:align: center
Stacked Bar Chart
=================
The *Stacked Bar Chart* can be generated by selecting the 'Stacked Bar Chart'
from the Graph Type drop-down, selecting the X-axis and the Y-axis, and
clicking on the 'Generate' button.
.. image:: images/query_stacked_bar_chart.png
:alt: Query tool graph visualiser stacked bar chart
:align: center
Connection Status
*****************

View File

@@ -9,6 +9,7 @@ This release contains a number of bug fixes and new features since the release o
New features
************
| `Issue #7486 <https://redmine.postgresql.org/issues/7486>`_ - Added support for visualizing the graphs using Stacked Line, Bar, and Stacked Bar charts in the query tool.
Housekeeping
************