matheuscamarques opened a new issue, #925:
URL: https://github.com/apache/poi/issues/925

   Hello POI Team,
   
   **What is the problem?**
   
   Apache POI (tested up to 5.2.5) does not currently offer high-level XDDF 
support for creating Funnel Charts, a chart type introduced in Office 2016.
   
   The existing ChartTypes enum does not include FUNNEL, and there is no 
XDDFChartData implementation (like XDDFunnelChartData) for it.
   
   **What is the current workaround?**
   
   The only way to generate a Funnel Chart is to drop down to the low-level XML 
classes (org.openxmlformats.schemas...). This involves:
   1.  Manually creating a CTFunnelChart instance in the CTPlotArea.
   2.  Building the CTFunnelSer (series) by hand.
   3.  Manually setting up the data sources (CTAxDataSource, CTNumDataSource).
   4.  Manually creating and linking the axes (CTCatAx, CTValAx).
   
   This low-level approach is complex, error-prone, and not well-documented.
   
   **What is the requested solution?**
   
   We request that high-level support for Funnel Charts be added to the XDDF 
charting library, consistent with other chart types like Bar, Line, and Pie 
charts.
   
   Ideally, the API would look something like this:
   
   // 1. Add ChartTypes.FUNNEL
   XDDFChartData data = chart.createData(ChartTypes.FUNNEL, categoryAxis, 
valueAxis);
   
   // 2. Add a corresponding XDDFunnelChartData (or similar)
   XDDFChartData.Series series = data.addSeries(categories, values);
   series.setTitle("My Funnel", null);
   
   // 3. Handle colors, data labels, etc., through the high-level API.
   // (e.g., data.setVaryColors(true))
   
   This enhancement would greatly simplify the creation of modern charts and 
make POI even more powerful.
   
   Thank you!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to