Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtchart-dev] PieChart

Hi Mathew, Hi Patrick
Thanks for your appreciation.
As per your suggestion, we shall be implementing parallel pies into SWTChart too, and try to get a close enough resemblance to LinuxTools. 
Users are already enabled to change the line colour of the borders of all nodes of the chart already through
ICircularSeriesSeettings.setBorderColor(Color color)
Settings to highlight a single node in response to an event having occurred by it shall be implemented.
The APIs requested by you and Patrick are mentioned in the issue https://github.com/eclipse/swtchart/issues/209 , and I am working on it. 
If either of you feel I missed out anything, do clarify it to me by commenting on the issue.
As said earlier, I shall notify on this list my updates on implementing the functionalities and APIs of LinuxTools Pie Chart.

Thanks again for your interest in my work,
Warm regards,
Himanshu

On Thu, Jul 23, 2020 at 2:21 PM Philip Wenig <philip.wenig@xxxxxxxxxxxxx> wrote:
Hi Matthew,

1) Setting the separating line color shouldn't be a problem, am I right @Himanshu?

@Matthew: Please create an issue here:
https://github.com/eclipse/swtchart/issues


2) Assign pie colors is in progress:
https://github.com/eclipse/swtchart/issues/208


3) Highlight/select a slice:
As far as I have a look at the code, that will be also possible. Currently, the ChartSettings offer an option "enableRangeSelector" to show additional informations of the selected slice. The chart could update itself and e.g. draw the slice in a different color. In the line and bar charts, this is solved by using the interface "ISeriesSettings", which offers to modify the settings for selected series: "ISeriesSettings getSeriesSettingsHighlight();".

@Matthew: Please create an issue here:
https://github.com/eclipse/swtchart/issues


Let's move this thing forward.


Best,
Philip


Am 22.07.20 um 16:03 schrieb Matthew Khouzam:
Hi Himanshu,

This looks like a great job you did so far. At the moment, I am working on a parallel pie chart for trace compass.


I have attached an image to better describe the improvements. There are three things in this patch that you may wish to look at taking:

1- white (or configurable) lines separating the pie slices rather than black lines.
2- pie slices or nodes that can be assigned colors so multiple pies may share common colors.
3- the ability to highlight/select a slice or node.

Hope this helps, and great work on your GSoC! Hope to see you in eclipse more often! 🙂



From: swtchart-dev-bounces@xxxxxxxxxxx <swtchart-dev-bounces@xxxxxxxxxxx> on behalf of Himanshu Balasamanta <himanshubb.eee18@xxxxxxxxxxx>
Sent: Friday, July 17, 2020 10:45 PM
To: swtchart developer discussions <swtchart-dev@xxxxxxxxxxx>
Subject: Re: [swtchart-dev] PieChart
 
Hello,

Currently the PieCharts are under development, and as of now, one can create only one of a simple or multi-level PieChart in a single Plot Area. Additionally, one can use doughnut charts too for the same data, and switch between the two by changing SeriesType.PIE to SeriesType.DOUGHNUT.

The migration of PieCharts from LinuxTools to SWTChart was proposed by me in my GSoC proposal, and I shall complete the work ASAP, in any situation it shall be completed well before August mid, and further debugging till August end. I shall keep the API for the Chart drawing the same as they are in Linux Tools. Details on the release of version 0.13 are known to Philip Sir.

I shall keep this mailing list updated on any progress on the implementation of the PieCharts from LinuxTools. Expect an update soon.

There is enough example code in the develop branch of swtchart project, have a look at

org.eclipse.swtchart.extensions.examples.parts.SimplePieChart for running it as an eclipse part,
org.eclipse.swtchart.examples.SingleLevelPieChartExample for running a simple Pie Chart as a java application
org.eclipse.swtchart.examples.MultiLevelPieExample for running a multi-level PieChart as a java application.

Additionally there are Doughnut Charts as well, have a look at 
org.eclipse.swtchart.examples.SingleLevelDoughnutChartExample for a Doughnut Chart as java application,
org.eclipse.swtchart.examples.MultiLevelDoughnutChart for multi-level doughnut chart as a java application.

Just FYI, let me bring you upto what all has been done yet, and what all we plan to do....

The PieCharts have a smooth transition of color, having a calm effect... User can also change the color of the nodes
simplePieChart.png

Recently, we added a listener, which displayed details of the node we hovered on
interactivePieChart.png
Upcoming in the next few days is adding a listener that listens to clicks and dynamically renders the chart, redrawn from the node it was clicked on.
Eg. If Asia were clicked in the above chart, the redrawn chart would be
explodedPieChart.png
Finally, we shall add all the functionalities that Linux Tools Provides, and shall try to maintain the API, to the extent we can. 

Do let us know if you would want anything additional to be implemented other than API from Linux Tools. 

Thanks and regards,
Himanshu


On Sat, Jul 18, 2020 at 2:23 AM Patrick Tasse <patrick.tasse@xxxxxxxxx> wrote:
Hi,

In the Trace Compass project we had been using the PieChart implementation from Linux Tools. This is being removed in 2020-09.

We would like to use SWTChart's PieChart instead, but we have a few questions:

- Is version 0.13 going to be released in time for 2020-09 simultaneous release?

- We use the following API methods from PieChart that are no longer available in the new implementation:

addPieChartSeries(String labels[], double val[][])
getSliceIndexFromPosition(int pieIndex, int x, int y)
getSlicePercent(int pieIndex, int sliceIndex)

I guess the first one is replaced by:
addSeriesData(ICircularSeriesData model)

Are the other APIs planned to be implemented or is there any replacement?

P.S.: Do you have any example code to create the data model for a simple pie chart?

Thank you,
Patrick


_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/swtchart-dev

_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/swtchart-dev

-- 
~~~~~~~~~~~~~~~~~~~~~~~~
OpenChrom - the open source alternative for chromatography / mass spectrometry
Dr. Philip Wenig » Founder » philip.wenig@xxxxxxxxxxxxx » http://www.openchrom.net
~~~~~~~~~~~~~~~~~~~~~~~~
_______________________________________________
swtchart-dev mailing list
swtchart-dev@xxxxxxxxxxx
To unsubscribe from this list, visit https://www.eclipse.org/mailman/listinfo/swtchart-dev

Back to the top