Class ContainerInfo
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
ধারক তথ্য একটি শীটের মধ্যে চার্টের অবস্থান অ্যাক্সেস করুন। Embedded Chart.modify()
ফাংশন ব্যবহার করে আপডেট করা যেতে পারে।
const sheet = SpreadsheetApp.getActiveSheet();
const chart = sheet.getCharts()[0];
const modifiedChart = chart.modify().setPosition(5, 5, 0, 0).build();
sheet.updateChart(modifiedChart);
পদ্ধতি
পদ্ধতি | রিটার্ন টাইপ | সংক্ষিপ্ত বিবরণ |
---|
get Anchor Column() | Integer | চার্টের বাম দিকটি এই কলামে নোঙর করা হয়েছে। |
get Anchor Row() | Integer | চার্টের উপরের দিকটি এই সারিতে নোঙর করা হয়েছে। |
get Offset X() | Integer | চার্টের উপরের বাম হাতের কোণটি নোঙ্গর কলাম থেকে এতগুলি পিক্সেল দ্বারা অফসেট করা হয়েছে। |
get Offset Y() | Integer | চার্টের উপরের বাম হাতের কোণটি অনেক পিক্সেল দ্বারা অ্যাঙ্কর সারি থেকে অফসেট করা হয়েছে। |
বিস্তারিত ডকুমেন্টেশন
get Anchor Column()
চার্টের বাম দিকটি এই কলামে নোঙর করা হয়েছে।
প্রত্যাবর্তন
Integer
— 1-সূচীযুক্ত কলাম (অর্থাৎ, কলাম C হল 3)।
get Anchor Row()
চার্টের উপরের দিকটি এই সারিতে নোঙর করা হয়েছে।
প্রত্যাবর্তন
Integer
— 1-সূচীযুক্ত সারি (অর্থাৎ, সারি 5 5 প্রদান করে)।
get Offset X()
চার্টের উপরের বাম হাতের কোণটি নোঙ্গর কলাম থেকে এতগুলি পিক্সেল দ্বারা অফসেট করা হয়েছে।
প্রত্যাবর্তন
Integer
— চার্টের উপরের বাম দিকের কোণে পিক্সেলে অনুভূমিক অফসেট।
get Offset Y()
চার্টের উপরের বাম হাতের কোণটি অনেক পিক্সেল দ্বারা অ্যাঙ্কর সারি থেকে অফসেট করা হয়েছে।
প্রত্যাবর্তন
Integer
— চার্টের উপরের বাম কোণে পিক্সেলে উল্লম্ব অফসেট।
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-08-12 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-08-12 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eContainerInfo\u003c/code\u003e allows you to access and update an embedded chart's position within a Google Sheet.\u003c/p\u003e\n"],["\u003cp\u003eYou can get the chart's anchor column and row, which determine its main positioning.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eOffsetX\u003c/code\u003e and \u003ccode\u003eOffsetY\u003c/code\u003e properties provide pixel-level control over the chart's placement relative to the anchor point.\u003c/p\u003e\n"],["\u003cp\u003eUse the \u003ccode\u003emodify()\u003c/code\u003e and \u003ccode\u003esetPosition()\u003c/code\u003e functions along with \u003ccode\u003eupdateChart()\u003c/code\u003e to change the chart's position programmatically.\u003c/p\u003e\n"]]],[],null,["# Class ContainerInfo\n\nContainerInfo\n\nAccess the chart's position within a sheet. Can be updated using the [EmbeddedChart.modify()](/apps-script/reference/spreadsheet/embedded-chart#modify()) function.\n\n```javascript\nconst sheet = SpreadsheetApp.getActiveSheet();\nconst chart = sheet.getCharts()[0];\nconst modifiedChart = chart.modify().setPosition(5, 5, 0, 0).build();\nsheet.updateChart(modifiedChart);\n``` \n\n### Methods\n\n| Method | Return type | Brief description |\n|-----------------------------------------|-------------|------------------------------------------------------------------------------------------|\n| [getAnchorColumn()](#getAnchorColumn()) | `Integer` | The chart's left side is anchored in this column. |\n| [getAnchorRow()](#getAnchorRow()) | `Integer` | The chart's top side is anchored in this row. |\n| [getOffsetX()](#getOffsetX()) | `Integer` | The chart's upper left hand corner is offset from the anchor column by this many pixels. |\n| [getOffsetY()](#getOffsetY()) | `Integer` | The chart's upper left hand corner is offset from the anchor row by this many pixels. |\n\nDetailed documentation\n----------------------\n\n### `get``Anchor``Column()`\n\nThe chart's left side is anchored in this column.\n\n#### Return\n\n\n`Integer` --- 1-indexed column (that is, column C is 3).\n\n*** ** * ** ***\n\n### `get``Anchor``Row()`\n\nThe chart's top side is anchored in this row.\n\n#### Return\n\n\n`Integer` --- 1-indexed row (that is, row 5 returns 5).\n\n*** ** * ** ***\n\n### `get``Offset``X()`\n\nThe chart's upper left hand corner is offset from the anchor column by this many pixels.\n\n#### Return\n\n\n`Integer` --- The horizontal offset in pixels for the upper left hand corner of the chart.\n\n*** ** * ** ***\n\n### `get``Offset``Y()`\n\nThe chart's upper left hand corner is offset from the anchor row by this many pixels.\n\n#### Return\n\n\n`Integer` --- The vertical offset in pixels for the upper left hand corner of the chart."]]