Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [swtchart-dev] How to center the PieChart?

Also, code example for complexer 
Pie Chart can be found  https://github.com/eclipse/swtchart/blob/develop/org.eclipse.swtchart.examples/src/org/eclipse/swtchart/examples/MultiLevelDoughnutChart.java
and interactive Doughnut Chart here https://github.com/eclipse/swtchart/blob/develop/org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/charts/InteractivePieChart.java
finally, multiple Pie Charts can be found here https://github.com/eclipse/swtchart/blob/develop/org.eclipse.swtchart.extensions.examples/src/org/eclipse/swtchart/extensions/examples/parts/MultiplePieChart.java
It is worth mentioning that you can change from Pie Chart to Doughnut Chart by changing SeriesType.PIE to SeriesType.DOUGHNUT in the code.

Hope this helps.

Best
Himanshu Balasamanta,
GSoC 2020, Eclipse (Implementing CIrcular Charts).

On Sun, Oct 10, 2021 at 12:36 AM Andreas Buchen <andreas.buchen@xxxxxxxxx> wrote:

Quick question: How can I center the pie chart?

As you can see from the screenshot, the legend is placed at the bottom. I would love to have the pie chart centered.

Bildschirmfoto 2021-10-09 um 20.25.13.png

And: does anybody have sample code with more complex examples. SingleLevelDoughnutChartExample is very simple and does not use the model. tracecompass seems to (still?) use their own implementation.

Thanks,

Andreas.
_______________________________________________
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