इस चार्ट के लिए ऊंचाई, रंग, और ऐक्सिस जैसे विकल्प दिखाता है.
ज़्यादा जानकारी वाला दस्तावेज़
getAs(contentType)
इस ऑब्जेक्ट में मौजूद डेटा को, तय किए गए कॉन्टेंट टाइप में बदले गए ब्लॉब के तौर पर दिखाता है. इस तरीके से, फ़ाइल के नाम में सही एक्सटेंशन जुड़ जाता है. जैसे, "myfile.pdf". हालांकि, यह माना जाता है कि फ़ाइल के नाम के आखिरी पीरियड (अगर कोई है) के बाद का हिस्सा, मौजूदा एक्सटेंशन है जिसे बदलना चाहिए. इसलिए, "ShoppingList.12.25.2014", "ShoppingList.12.25.pdf" हो जाता है.
कन्वर्ज़न के लिए हर दिन के कोटे देखने के लिए, Google की सेवाओं के लिए कोटे देखें. नए बनाए गए Google Workspace डोमेन पर, कुछ समय के लिए ज़्यादा कड़े कोटा लागू हो सकते हैं.
पैरामीटर
नाम
टाइप
ब्यौरा
contentType
String
जिस MIME टाइप में बदलना है. ज़्यादातर ब्लॉब के लिए, 'application/pdf' ही एक मान्य विकल्प है. BMP, GIF, JPEG या PNG फ़ॉर्मैट में मौजूद इमेज के लिए, 'image/bmp', 'image/gif', 'image/jpeg' या 'image/png' में से कोई भी वैल्यू इस्तेमाल की जा सकती है. Google Docs दस्तावेज़ के लिए, 'text/markdown' भी मान्य है.
[[["समझने में आसान है","easyToUnderstand","thumb-up"],["मेरी समस्या हल हो गई","solvedMyProblem","thumb-up"],["अन्य","otherUp","thumb-up"]],[["वह जानकारी मौजूद नहीं है जो मुझे चाहिए","missingTheInformationINeed","thumb-down"],["बहुत मुश्किल है / बहुत सारे चरण हैं","tooComplicatedTooManySteps","thumb-down"],["पुराना","outOfDate","thumb-down"],["अनुवाद से जुड़ी समस्या","translationIssue","thumb-down"],["सैंपल / कोड से जुड़ी समस्या","samplesCodeIssue","thumb-down"],["अन्य","otherDown","thumb-down"]],["आखिरी बार 2025-07-26 (UTC) को अपडेट किया गया."],[[["\u003cp\u003eA Chart object can be converted into a static image and offers methods to manipulate its data and appearance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetAs()\u003c/code\u003e method allows for data export in various formats like PDF, BMP, GIF, JPEG, or PNG, applying appropriate filename extensions.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003egetBlob()\u003c/code\u003e method returns the chart's data as a blob, providing a general way to access its raw content.\u003c/p\u003e\n"],["\u003cp\u003eChart customization is enabled through the \u003ccode\u003egetOptions()\u003c/code\u003e method, which gives access to properties such as height, colors, and axes but in an immutable format.\u003c/p\u003e\n"]]],[],null,["Chart\n\nA Chart object, which can be converted to a static image. For charts embedded in spreadsheets,\nsee [EmbeddedChart](../spreadsheet/embedded-chart.html). \n\nMethods\n\n| Method | Return type | Brief description |\n|--------------------------------------|-------------------------------------------------------------|---------------------------------------------------------------------------------------|\n| [getAs(contentType)](#getAs(String)) | [Blob](../base/blob.html) | Return the data inside this object as a blob converted to the specified content type. |\n| [getBlob()](#getBlob()) | [Blob](../base/blob.html) | Return the data inside this object as a blob. |\n| [getOptions()](#getOptions()) | [ChartOptions](/apps-script/reference/charts/chart-options) | Returns the options for this chart, such as height, colors, and axes. |\n\nDetailed documentation \n\n`get``As(contentType)` \nReturn the data inside this object as a blob converted to the specified content type. This\nmethod adds the appropriate extension to the filename---for example, \"myfile.pdf\". However, it\nassumes that the part of the filename that follows the last period (if any) is an existing\nextension that should be replaced. Consequently, \"ShoppingList.12.25.2014\" becomes\n\"ShoppingList.12.25.pdf\".\n\nTo view the daily quotas for conversions, see [Quotas for Google\nServices](https://developers.google.com/apps-script/guides/services/quotas). Newly created Google Workspace domains might be temporarily subject to stricter\nquotas.\n\nParameters\n\n| Name | Type | Description |\n|-----------------|----------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `content``Type` | `String` | The MIME type to convert to. For most blobs, `'application/pdf'` is the only valid option. For images in BMP, GIF, JPEG, or PNG format, any of `'image/bmp'`, `'image/gif'`, `'image/jpeg'`, or `'image/png'` are also valid. For a Google Docs document, `'text/markdown'` is also valid. |\n\nReturn\n\n\n[Blob](../base/blob.html) --- The data as a blob.\n\n*** ** * ** ***\n\n`get``Blob()` \nReturn the data inside this object as a blob.\n\nReturn\n\n\n[Blob](../base/blob.html) --- The data as a blob.\n\n*** ** * ** ***\n\n`get``Options()` \nReturns the options for this chart, such as height, colors, and axes.\n\nThe returned options are immutable.\n\nReturn\n\n\n[ChartOptions](/apps-script/reference/charts/chart-options) --- The options for this chart, such as height, colors, and axes."]]