# जावा का उपयोग करके प्रस्तुतियों में 3D चार्ट को अनुकूलित करें

> Aspose.Slides for Java में 3-D चार्ट बनाना और अनुकूलित करना सीखें, PPT और PPTX फ़ाइलों के समर्थन के साथ—आज ही अपनी प्रस्तुतियों को बेहतर बनाएं।

Source: https://docs.aspose.com/slides/hi/java/3d-chart/
Updated: 2026-06-14

## **परिचय**

यह लेख Aspose.Slides में `Rotation3D` सेटिंग्स जैसे `RotationX`, `RotationY`, `DepthPercents`, और `RightAngleAxes` को कॉन्फ़िगर करके 3D चार्ट को कस्टमाइज़ करने का तरीका बताता है। यह प्रेजेंटेशन बनाने, डिफ़ॉल्ट डेटा के साथ 3D चार्ट जोड़ने, आवश्यक 3D व्यू सेटिंग्स लागू करने, और संशोधित प्रेजेंटेशन को PPTX फ़ाइल के रूप में सहेजने की प्रक्रिया को दर्शाता है।

## **3D चार्ट के RotationX, RotationY और DepthPercents गुण सेट करें**
Aspose.Slides for Java इन गुणों को सेट करने के लिए एक सरल API प्रदान करता है। यह लेख आपको **X, Y Rotation, DepthPercents** आदि जैसे विभिन्न गुणों को कैसे सेट किया जाए, इसमें मदद करेगा। नमूना कोड उपर्युक्त गुणों की सेटिंग लागू करता है।

1. [Presentation](https://reference.aspose.com/slides/hi/java/com.aspose.slides/presentation/) क्लास का एक इंस्टेंस बनाएं।
2. पहली स्लाइड तक पहुंचें।
3. डिफ़ॉल्ट डेटा के साथ चार्ट जोड़ें।
4. Rotation3D गुण सेट करें।
5. संशोधित प्रेजेंटेशन को PPTX फ़ाइल के रूप में लिखें।

```java
Presentation pres = new Presentation();
try {
    // पहली स्लाइड तक पहुँचें
    ISlide slide = pres.getSlides().get_Item(0);
    
    // डिफ़ॉल्ट डेटा के साथ चार्ट जोड़ें
    IChart chart = slide.getShapes().addChart(ChartType.StackedColumn3D, 0, 0, 500, 500);
    
    // चार्ट डेटा शीट का इंडेक्स सेट करना
    int defaultWorksheetIndex = 0;
    
    // चार्ट डेटा वर्कशीट प्राप्त करना
    IChartDataWorkbook fact = chart.getChartData().getChartDataWorkbook();
    
    // श्रृंखला जोड़ें
    chart.getChartData().getSeries().add(fact.getCell(defaultWorksheetIndex, 0, 1, "Series 1"), chart.getType());
    chart.getChartData().getSeries().add(fact.getCell(defaultWorksheetIndex, 0, 2, "Series 2"), chart.getType());
    
    // श्रेणियाँ जोड़ें
    chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 1, 0, "Caetegoty 1"));
    chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 2, 0, "Caetegoty 2"));
    chart.getChartData().getCategories().add(fact.getCell(defaultWorksheetIndex, 3, 0, "Caetegoty 3"));
    
    // Rotation3D गुण सेट करें
    chart.getRotation3D().setRightAngleAxes(true);
    chart.getRotation3D().setRotationX((byte)40);
    chart.getRotation3D().setRotationY(270);
    chart.getRotation3D().setDepthPercents(150);
    
    // दूसरी चार्ट श्रृंखला लें
    IChartSeries series = chart.getChartData().getSeries().get_Item(1);
    
    // अब श्रृंखला डेटा भर रहे हैं
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 1, 1, 20));
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 2, 1, 50));
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 3, 1, 30));
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 1, 2, 30));
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 2, 2, 10));
    series.getDataPoints().addDataPointForBarSeries(fact.getCell(defaultWorksheetIndex, 3, 2, 60));
    
    // OverLap मान सेट करें
    series.getParentSeriesGroup().setOverlap((byte)100);
    
    // प्रस्तुति को डिस्क में सहेजें
    pres.save("Rotation3D_out.pptx", SaveFormat.Pptx);
} finally {
    if (pres != null) pres.dispose();
}
```

## **अक्सर पूछे जाने वाले प्रश्न**

**Aspose.Slides में कौन से चार्ट प्रकार 3D मोड का समर्थन करते हैं?**

Aspose.Slides कॉलम चार्ट के 3D विकल्पों का समर्थन करता है, जिसमें Column 3D, Clustered Column 3D, Stacked Column 3D, और 100% Stacked Column 3D शामिल हैं, साथ ही संबंधित 3D प्रकार जो [ChartType](https://reference.aspose.com/slides/hi/java/com.aspose.slides/charttype/) क्लास के माध्यम से उपलब्ध हैं। सटीक और नवीनतम सूची के लिए, अपने स्थापित संस्करण के API रेफ़रेंस में [ChartType](https://reference.aspose.com/slides/hi/java/com.aspose.slides/charttype/) सदस्यों को देखें।

**क्या मैं रिपोर्ट या वेब के लिए 3D चार्ट की रास्टर इमेज प्राप्त कर सकता हूँ?**

हां। आप [chart API](https://reference.aspose.com/slides/hi/java/com.aspose.slides/shape/#getImage-int-float-float-) के माध्यम से चार्ट को इमेज में निर्यात कर सकते हैं या पूरे स्लाइड को [render the entire slide](/slides/hi/java/convert-powerpoint-to-png/) करके PNG या JPEG जैसे फ़ॉर्मैट में बदल सकते हैं। यह तब उपयोगी होता है जब आपको पिक्सेल-परफेक्ट प्रीव्यू चाहिए या आप चार्ट को दस्तावेज़ों, डैशबोर्ड, या वेब पेजों में एम्बेड करना चाहते हैं बिना PowerPoint की आवश्यकता के।

**बड़े 3D चार्ट बनाना और रेंडर करना कितना प्रदर्शनकारी है?**

प्रदर्शन डेटा की मात्रा और दृश्य जटिलता पर निर्भर करता है। सर्वोत्तम परिणामों के लिए, 3D प्रभावों को न्यूनतम रखें, दीवारों और प्लॉट क्षेत्रों पर भारी टेक्सचर से बचें, संभव हो तो प्रति श्रृंखला डेटा बिंदुओं की संख्या सीमित रखें, और लक्ष्य डिस्प्ले या प्रिंट आवश्यकताओं के अनुरूप उपयुक्त आकार (रिज़ॉल्यूशन और आयाम) में आउटपुट रेंडर करें।
