এই নথিটি বর্ণনা করে কিভাবে চার্ট API ব্যবহার করে পাই চার্ট তৈরি করতে হয়।
সুচিপত্র
চার্ট-নির্দিষ্ট বৈশিষ্ট্য
| সাধারণ বৈশিষ্ট্য
|
ওভারভিউ
পাই চার্ট সহজ আনুপাতিক অংশ থেকে পুরো তথ্য দেখানোর জন্য ভাল। আপনি একটি একক সিরিজ পাই চার্ট তৈরি করতে পারেন, যেখানে প্রতিটি সিরিজ একাধিক স্লাইস, বা মাল্টি-সিরিজ, এককেন্দ্রিক চার্ট দিয়ে তৈরি।
প্রতিটি সিরিজ একটি পাই বর্ণনা করে, এবং প্রতিটি ডেটা মান একটি স্লাইস নির্দিষ্ট করে। নেস্টেড পাই চার্ট ব্যবহার করার সময় (নীচে বর্ণিত), একাধিক সিরিজ ব্যবহার করুন।
একটি স্লাইসের সাথে যুক্ত টেক্সট প্রদর্শন করতে, আপনাকে হয় পাই চার্ট লেবেল বা চার্ট লেজেন্ড ব্যবহার করতে হবে। পাই চার্ট লেবেলগুলি চার্টের চারপাশে টেক্সট যা স্লাইসের দিকে নির্দেশ করে। কিংবদন্তিগুলি রঙের সাথে যুক্ত পাঠ্য।
লেবেল | কিংবদন্তি | লেবেল এবং কিংবদন্তি |
---|---|---|
chl=January|February|March|April | chdl=January|February|March|April | chl=January|February|March|April |
মান একে অপরের সাপেক্ষে প্রদর্শিত হয়: তাই মান 1,2,3 সহ একটি চার্ট 100,200,300 মান সহ একটি চার্টের মতোই দেখাবে৷ যাইহোক, টেক্সট ফরম্যাট ডেটা ব্যবহার করার সময়, 100-এর বেশি মানগুলি 100-এ ছাঁটাই করা হয়, তাই 100-এর বেশি স্লাইসগুলি সঠিকভাবে প্রদর্শন করতে আপনাকে কাস্টম স্কেলিং সহ পাঠ্য বিন্যাস ব্যবহার করতে হবে ( chds=0,< max-slice-size >
এর সর্বনিম্ন/সর্বোচ্চ মান সহ chds
প্যারামিটার ব্যবহার করুন, chds=0,< max-slice-size >
)।
নেতিবাচক মান যথাযথ আকারের খালি স্লাইস হিসাবে প্রদর্শিত হয়।
চার্টের ধরন
তিনটি সাধারণ ধরণের পাই চার্ট রয়েছে যা আপনি তৈরি করতে পারেন: সমতল, কেন্দ্রীভূত বা 3D। নিম্নলিখিত সিনট্যাক্স সহ একটি পাই চার্ট নির্দিষ্ট করুন:
বাক্য গঠন
cht=<chart_type>
যেখানে < chart_type >
নিম্নলিখিত প্রকারগুলির মধ্যে একটি:
প্যারামিটার | বর্ণনা | উদাহরণ |
---|---|---|
| দ্বিমাত্রিক পাই চার্ট। শুধুমাত্র একটি ডেটা সিরিজ সরবরাহ করুন; পরবর্তী ডেটা সিরিজ উপেক্ষা করা হয়। ডিফল্টরূপে, পাই সেগমেন্টের রঙগুলি গাঢ় কমলা থেকে ফ্যাকাশে হলুদ পর্যন্ত প্রসারিত হয়। সিরিজের রঙে বর্ণিত অন্যান্য রং উল্লেখ করুন। পাই চার্ট লেবেলে বর্ণিত হিসাবে Google চার্ট API চার্টের আকার ( | |
| একটি ত্রিমাত্রিক পাই চার্ট। উপরের দ্বিমাত্রিক পাই চার্টের মতো একইভাবে ডেটা এবং ফর্ম্যাটিং নির্দিষ্ট করুন। আপনি যদি একটি ত্রিমাত্রিক পাই চার্টে লেবেলগুলি অন্তর্ভুক্ত করেন তবে আপনার লেবেলগুলি সম্পূর্ণরূপে দৃশ্যমান তা নিশ্চিত করার জন্য আপনাকে সম্ভবত উচ্চতার আকারের 2.5 গুণ প্রস্থের আকার নির্দিষ্ট করতে হবে৷ | |
| একটি কেন্দ্রীভূত পাই চার্ট। দুই বা ততোধিক ডেটা সিরিজ সরবরাহ করুন। | |
সব ধরনের | ডেটাতে নেতিবাচক সংখ্যার কারণে "ফাঁকা" স্লাইস হয়। | cht=pc |
সিরিজ রং chco
আপনি chco
প্যারামিটার ব্যবহার করে সমস্ত মান, প্রতিটি মান বা কিছু মানগুলির রঙ নির্দিষ্ট করতে পারেন।
বাক্য গঠন
chco=<slice_1>|<slice_2>|<slice_n>,<series_color_1>,...,<series_color_n>
- < রঙ >
- RRGGBB হেক্সাডেসিমেল বিন্যাসে রঙ স্লাইস করুন। একটি একক সিরিজের রঙ নির্দিষ্ট করুন এবং সেই সিরিজের সমস্ত স্লাইস সেই রঙের গ্রেডেশনে গাঢ় (প্রথম ডেটা সদস্য) থেকে হালকা (শেষ ডেটা সদস্য) পর্যন্ত রঙিন হবে। একটি | দ্বারা সীমাবদ্ধ দুই বা ততোধিক রঙ নির্দিষ্ট করুন৷ পৃথক স্লাইস রং বর্ণনা করতে. যখন আপনার একাধিক সিরিজ থাকে (অর্থাৎ, কেন্দ্রীভূত রিং সহ একটি চার্ট), আপনি কমা দ্বারা মানগুলিকে আলাদা করে বিভিন্ন সিরিজের জন্য মান নির্দিষ্ট করতে পারেন। যখন স্লাইস/সিরিজ দেখানোর চেয়ে কম স্লাইস/সিরিজ রঙ দেওয়া হয়, তখন চার্টটি সিরিজের জন্য স্লাইস তালিকার শুরু থেকে বা চার্টের জন্য সিরিজ তালিকার মধ্যে দিয়ে যাবে। আপনি একটি মাল্টি-সিরিজ চার্টে প্রতিটি সিরিজের জন্য একটি স্বতন্ত্র গ্রেডিয়েন্ট নির্দিষ্ট করতে পারবেন না।
বর্ণনা | উদাহরণ |
---|---|
গাঢ় (প্রথম স্লাইস) থেকে হালকা (শেষ স্লাইস) পর্যন্ত গ্রেডেশনের জন্য একটি একক রঙ নির্দিষ্ট করুন। | |
একটি গ্রেডিয়েন্ট সংজ্ঞায়িত করা; এখানে, হলুদ থেকে লাল। |
|
পৃথক স্লাইস রং সংজ্ঞায়িত; স্লাইস প্রতি একটি রং নির্দিষ্ট করুন. | chd=t:10,20,30 |
এই চার্টে দুটি ডেটা সিরিজ রয়েছে, তবে হলুদ থেকে লাল (BBBB00-BB0000) সমস্ত স্লাইস জুড়ে একক গ্রেডিয়েন্ট হিসাবে রঙ নির্দিষ্ট করে৷ | chco=BBBB00,BB0000 |
এখানে একটি কেন্দ্রীভূত চার্ট যা সিরিজের রঙ এবং পৃথক স্লাইস রঙ উভয়ই অন্তর্ভুক্ত করে। চার্টে দুটি কেন্দ্রীভূত ডেটা সিরিজ রয়েছে। মানুষের পঠনযোগ্য আকারে, রঙগুলি হল chco=সবুজ|লাল,নীল|হলুদ। কমা এটিকে দুটি সিরিজে বিভক্ত করে:
| chd=s:eYY,ORVM |
পাই চার্ট লেবেল chl
আপনি chl
প্যারামিটার ব্যবহার করে পৃথক পাই চার্ট স্লাইসের জন্য লেবেল নির্দিষ্ট করতে পারেন। আপনি একই বা ভিন্ন মান সহ একটি কিংবদন্তি প্রদর্শন করতে পারেন, প্রতি স্লাইসে একটি কিংবদন্তি এন্ট্রি।
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি এখানে একটি URL এনকোডার খুঁজে পেতে পারেন।
বাক্য গঠন
chl= <label_value>| ... <label_value>
- <label_value >
- একটি স্লাইস প্রয়োগ করার জন্য একটি স্ট্রিং মান। লেবেলগুলি
chd
এর ডেটা পয়েন্টগুলিতে ধারাবাহিকভাবে প্রয়োগ করা হয়। আপনার যদি একাধিক সিরিজ থাকে (উদাহরণস্বরূপ, একটি ঘনকেন্দ্রিক পাই চার্টের জন্য), লেবেলগুলিchd
তে নির্দিষ্ট ক্রম অনুসারে সমস্ত সিকোয়েন্সের সমস্ত পয়েন্টে প্রয়োগ করা হয়। প্রতিটি লেবেলের মধ্যে একটি পাইপ ডিলিমিটার (|
) ব্যবহার করুন। পরপর দুটি পাইপ অক্ষর ব্যবহার করে একটি অনুপস্থিত ইন্টারভেনিং মান নির্দিষ্ট করুন যার মধ্যে কোন স্থান নেই:||
. আপনাকে সমস্ত স্লাইস লেবেল করার দরকার নেই।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
একটি ত্রিমাত্রিক পাই চার্টের জন্য লেবেল। | |
সাধারণত, একটি দ্বি-মাত্রিক পাই চার্টটি উচ্চতার চেয়ে প্রায় দ্বিগুণ প্রশস্ত হওয়া প্রয়োজন এবং লেবেলগুলি সঠিকভাবে প্রদর্শন করার জন্য একটি ত্রিমাত্রিক পাই চার্টটি উচ্চতার চেয়ে প্রায় আড়াই গুণ চওড়া হওয়া প্রয়োজন। প্রথম উদাহরণে, লেবেলগুলি শুধুমাত্র আংশিকভাবে প্রদর্শিত হয়, কারণ চার্টটি যথেষ্ট প্রশস্ত নয়। দ্বিতীয় উদাহরণটি দেখায় যে লেবেলগুলি সম্পূর্ণরূপে প্রদর্শন করতে চার্টটির প্রস্থ 280 পিক্সেলের প্রয়োজন। (সীমানা | |
পাই চার্ট ঘূর্ণন chp
ডিফল্টরূপে, প্রথম সিরিজটি চার্টের চারপাশে ঘড়ির কাঁটার দিকে চালিয়ে 3:00 এ শুরু হয়, তবে আপনি chp
প্যারামিটার ব্যবহার করে একটি কাস্টম ঘূর্ণন নির্দিষ্ট করতে পারেন।
বাক্য গঠন
chp=<radians>
- <রেডিয়ান >
- চার্ট ঘড়ির কাঁটার দিকে কত রেডিয়ান ঘোরাতে হবে তা বর্ণনা করে একটি ভাসমান বিন্দুর মান। একটি সম্পূর্ণ পালা হল 2 π (2 pi—প্রায় 6.28) রেডিয়ান।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
একটি পাই চার্টের অভিযোজন পরিবর্তন করতে, | |
পাই চার্ট ঘূর্ণনের আরেকটি উদাহরণ এখানে। কিছু আকর্ষণীয় প্রভাব তৈরি করতে এগুলি চার্ট শেপ মার্কারগুলির সাথে একত্রিত করা যেতে পারে। |
সাধারণ বৈশিষ্ট্য
এই পৃষ্ঠার বাকি বৈশিষ্ট্যগুলি স্ট্যান্ডার্ড চার্ট বৈশিষ্ট্য।
চার্ট শিরোনাম chtt
, chts
[ সমস্ত চার্ট ]
আপনি আপনার চার্টের জন্য শিরোনাম পাঠ্য, রঙ এবং ফন্টের আকার নির্দিষ্ট করতে পারেন।
বাক্য গঠন
chtt=<chart_title> chts=<color>,<font_size>,<opt_alignment>
chtt
- চার্ট শিরোনাম নির্দিষ্ট করে।
- < চার্ট_টাইটেল >
- চার্ট দেখানোর জন্য শিরোনাম। এটি কোথায় প্রদর্শিত হবে তা আপনি নির্দিষ্ট করতে পারবেন না, তবে আপনি ঐচ্ছিকভাবে ফন্টের আকার এবং রঙ নির্দিষ্ট করতে পারেন। শূন্যস্থান নির্দেশ করতে একটি + চিহ্ন এবং লাইন বিরতি নির্দেশ করতে একটি পাইপ অক্ষর (
|
) ব্যবহার করুন।
chts
[ ঐচ্ছিক ] - chtt
প্যারামিটারের জন্য রঙ এবং ফন্টের আকার।
- <রঙ >
- শিরোনামের রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । ডিফল্ট রঙ কালো।
- <font_size>
- শিরোনামের হরফের আকার, পয়েন্টে।
- < opt_alignment >
- [ ঐচ্ছিক ] শিরোনামের প্রান্তিককরণ। নিম্নলিখিত কেস-সংবেদনশীল স্ট্রিং মানগুলির মধ্যে একটি বেছে নিন: "l" (বাম), "c" (কেন্দ্রিক) "r" (ডান)। ডিফল্ট হল "c"।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
একটি শিরোনাম সহ একটি চার্ট, ডিফল্ট রঙ এবং ফন্টের আকার ব্যবহার করে৷ যোগ চিহ্ন ( একটি লাইন বিরতি জোর করতে একটি পাইপ অক্ষর ( | chtt=Site+visitors+by+month| |
একটি নীল, ডান-সারিবদ্ধ, 20-পয়েন্ট শিরোনাম সহ একটি চার্ট। | chtt=Site+visitors |
চার্ট লিজেন্ড টেক্সট এবং স্টাইল chdl
, chdlp
, chdls
[ সমস্ত চার্ট ]
কিংবদন্তি হল চার্টের একটি পার্শ্ব বিভাগ যা প্রতিটি সিরিজের একটি ছোট পাঠ্য বিবরণ দেয়। আপনি এই কিংবদন্তির প্রতিটি সিরিজের সাথে যুক্ত পাঠ্যটি নির্দিষ্ট করতে পারেন এবং চার্টে এটি কোথায় প্রদর্শিত হবে তা উল্লেখ করতে পারেন।
আপনার কিংবদন্তির চারপাশে মার্জিন কীভাবে সেট করবেন তা শিখতে chma
দেখুন।
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
বাক্য গঠন
chdl=<data_series_1_label>|...|<data_series_n_label> chdlp=<opt_position>|<opt_label_order> chdls=<color>,<size>
chdl
- কিংবদন্তীতে প্রদর্শনের জন্য প্রতিটি সিরিজের পাঠ্য।
- < ডেটা_সিরিজ_লেবেল >
- কিংবদন্তি এন্ট্রি জন্য পাঠ্য. প্রতিটি লেবেল
chd
অ্যারের সংশ্লিষ্ট সিরিজে প্রযোজ্য। একটি স্থানের জন্য একটি + চিহ্ন ব্যবহার করুন। আপনি যদি এই প্যারামিটারটি নির্দিষ্ট না করেন তবে চার্টটি একটি কিংবদন্তি পাবে না। একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। কিংবদন্তিটি সাধারণত আপনার কিংবদন্তি পাঠ্যটিকে ধরে রাখতে প্রসারিত হবে এবং লেজেন্ডটিকে মিটমাট করার জন্য চার্টের ক্ষেত্রটি সঙ্কুচিত হবে।
chdlp
- [ ঐচ্ছিক ] কিংবদন্তির অবস্থান, এবং কিংবদন্তি এন্ট্রির ক্রম। আপনি < অবস্থান > এবং/অথবা < label_order > নির্দিষ্ট করতে পারেন। আপনি যদি উভয়টি নির্দিষ্ট করেন তবে একটি বার অক্ষর দিয়ে আলাদা করুন। আপনি যদি চান যে chdl
এ খালি কিংবদন্তি এন্ট্রিগুলি কিংবদন্তিতে এড়িয়ে যেতে চান তাহলে আপনি যেকোনো মানতে একটি 's' যোগ করতে পারেন। উদাহরণ: chdlp=bv
, chdlp=r
, chdlp=bv|r
, chdlp=bvs|r
- < opt_position >
- [ ঐচ্ছিক ] লেজেন্ডের অবস্থান সুনির্দিষ্ট করে। কিংবদন্তি এবং চার্ট এলাকা বা ছবির সীমানার মধ্যে অতিরিক্ত প্যাডিং নির্দিষ্ট করতে,
chma
প্যারামিটার ব্যবহার করুন। নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:-
b
- লেজেন্ডের নীচে লেজেন্ড, একটি অনুভূমিক সারিতে লেজেন্ড এন্ট্রি। -
bv
- চার্টের নীচে কিংবদন্তি, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
t
- চার্টের শীর্ষে লেজেন্ড, একটি অনুভূমিক সারিতে কিংবদন্তি এন্ট্রি। -
tv
- চার্টের শীর্ষে লেজেন্ড, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
r
- [ ডিফল্ট ] লেজেন্ড লেজেন্ডের ডানদিকে, একটি উল্লম্ব কলামে লেজেন্ড এন্ট্রি। -
l
- লেজেন্ডের বাম দিকে, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি।
-
- < opt_label_order >
- [ ঐচ্ছিক ] যে ক্রমে লেবেলগুলি কিংবদন্তিতে দেখানো হয়েছে৷ নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:
-
l
- [ উল্লম্ব কিংবদন্তিগুলির জন্য ডিফল্ট ]chdl
দেওয়া ক্রমে লেবেলগুলি প্রদর্শন করুন৷ -
r
-chdl
কে দেওয়া বিপরীত ক্রমে লেবেলগুলি প্রদর্শন করুন। এটি কিংবদন্তি দেখানোর জন্য স্ট্যাক করা বার চার্টে দরকারী
বার প্রদর্শিত একই ক্রমে. -
a
- [ অনুভূমিক কিংবদন্তির জন্য ডিফল্ট ] স্বয়ংক্রিয় ক্রম: মোটামুটি মানে হল দৈর্ঘ্য অনুসারে বাছাই করা, প্রথমে সংক্ষিপ্ততম, যেমন 10 পিক্সেল ব্লকে পরিমাপ করা হয়। যখন দুটি উপাদান একই দৈর্ঘ্যের হয় (10 পিক্সেল ব্লকে বিভক্ত), প্রথমে তালিকাভুক্ত একটি প্রথমে প্রদর্শিত হবে। -
0,1,2...
- কাস্টম লেবেল অর্ডার। এটিchdl
থেকে শূন্য-ভিত্তিক লেবেল সূচীগুলির একটি তালিকা, কমা দ্বারা পৃথক করা হয়েছে।
-
chdls
- [ ঐচ্ছিক ] কিংবদন্তি পাঠ্যের রঙ এবং ফন্টের আকার নির্দিষ্ট করে।
- < রঙ >
- লেজেন্ড টেক্সট রঙ, RRGGBB হেক্সাডেসিমেল ফর্ম্যাটে ।
- < আকার >
- কিংবদন্তি পাঠ্যের বিন্দু আকার।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
কিংবদন্তির দুটি উদাহরণ। আপনার ডেটা সিরিজের মতো একই ক্রমে কিংবদন্তি পাঠ্য নির্দিষ্ট করুন। | chdl=NASDAQ|FTSE100|DOW chdl=First|Second|Third |
প্রথম চার্ট অনুভূমিক কিংবদন্তি এন্ট্রিগুলি প্রদর্শন করে ( | |
এই উদাহরণটি ফন্টের আকার পরিবর্তন দেখায়। | |
চার্ট মার্জিন chma
[ সমস্ত চার্ট ]
আপনি চার্টের মার্জিনের আকার পিক্সেলে নির্দিষ্ট করতে পারেন। মার্জিন নির্দিষ্ট চার্ট আকার ( chs
) থেকে ভিতরের দিকে গণনা করা হয়; মার্জিনের আকার বাড়ানো মোট চার্টের আকার বাড়ায় না, বরং প্রয়োজনে চার্টের ক্ষেত্রটিকে সঙ্কুচিত করে।
চার্টের আকার গণনা করার পরে যা অবশিষ্ট থাকে তা ডিফল্টভাবে মার্জিন হয়। এই ডিফল্ট মান চার্টের ধরন অনুসারে পরিবর্তিত হয়। আপনি যে মার্জিনগুলি নির্দিষ্ট করেছেন তা একটি সর্বনিম্ন মান; যদি চার্টের ক্ষেত্রটি মার্জিনের জন্য জায়গা ছেড়ে দেয়, তবে মার্জিনের আকার যা অবশিষ্ট থাকবে তা হবে; আপনি কোন কিংবদন্তি এবং লেবেলগুলির জন্য প্রয়োজনীয়তার চেয়ে ছোট মার্জিনগুলিকে চাপতে পারবেন না। এখানে একটি চার্টের মৌলিক অংশগুলি দেখানো একটি চিত্র:
চার্ট মার্জিনে অক্ষ লেবেল এবং কিংবদন্তি এলাকা অন্তর্ভুক্ত রয়েছে। কিংবদন্তি এলাকা স্বয়ংক্রিয়ভাবে টেক্সট ফিট করার জন্য স্বয়ংক্রিয়ভাবে আকার পরিবর্তন করে, যদি না আপনি টিপ: একটি বার চার্টে, বারগুলির একটি নির্দিষ্ট আকার (ডিফল্ট) থাকলে, চার্ট এলাকার প্রস্থ কমানো যাবে না। আপনাকে অবশ্যই |
বাক্য গঠন
chma= <left_margin>,<right_margin>,<top_margin>,<bottom_margin>|<opt_legend_width>,<opt_legend_height>
- < left_margin >, < right_margin >, < top_margin >, < bottom_margin >
- চার্ট এলাকার চারপাশে ন্যূনতম মার্জিন আকার, পিক্সেলে। অক্ষের লেবেলগুলিকে চার্টের সীমানাগুলির সাথে বাম্পিং থেকে আটকাতে কিছু প্যাডিং অন্তর্ভুক্ত করতে এই মানটি বাড়ান৷
- < opt_legend_width >, < opt_legend_height >
- [ ঐচ্ছিক ] কিংবদন্তির চারপাশে মার্জিনের প্রস্থ, পিক্সেলে। লেজেন্ডটিকে চার্ট এরিয়া বা ছবির প্রান্তের সাথে বাম্প আপ করা এড়াতে এটি ব্যবহার করুন।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণে, চার্টের প্রতিটি পাশে ন্যূনতম 30 পিক্সেল মার্জিন রয়েছে। চার্ট লিজেন্ডটি 30 পিক্সেলের বেশি প্রশস্ত হওয়ার কারণে, ডান পাশের মার্জিনটি চার্ট লিজেন্ডের প্রস্থে সেট করা হয়েছে এবং অন্যান্য মার্জিন থেকে আলাদা। অক্ষ লেবেলগুলি প্লট এলাকার বাইরে, এবং তাই মার্জিন স্পেসের মধ্যে আঁকা হয়। |
|
কিংবদন্তির চারপাশে একটি মার্জিন যোগ করতে, এই উদাহরণে, কিংবদন্তিটি প্রায় 60 পিক্সেল চওড়া। আপনি যদি |
|
অক্ষ শৈলী এবং লেবেল [ লাইন, বার, গুগল-ও-মিটার, রাডার, স্ক্যাটার ]
আপনি চার্টে কোন অক্ষগুলি প্রদর্শন করতে হবে তা নির্দিষ্ট করতে পারেন এবং তাদের কাস্টম লেবেল এবং অবস্থান, ব্যাপ্তি এবং শৈলী দিতে পারেন।
সমস্ত চার্ট ডিফল্টরূপে অক্ষরেখা দেখায় না। chxt
প্যারামিটার ব্যবহার করে আপনার চার্টে ঠিক কোন অক্ষগুলি দেখানো উচিত তা আপনি নির্দিষ্ট করতে পারেন। ডিফল্ট অক্ষ রেখা সংখ্যা দেখায় না; সংখ্যা দেখানোর জন্য আপনাকে chxt
প্যারামিটারে একটি অক্ষ উল্লেখ করতে হবে।
আপনি আপনার অক্ষগুলি ডেটা মানগুলিকে প্রতিফলিত করে প্রদর্শন সংখ্যাগুলি বেছে নিতে পারেন বা আপনি কাস্টম অক্ষগুলি নির্দিষ্ট করতে পারেন৷ ডিফল্ট হল সাংখ্যিক মান প্রদর্শন করা, মানগুলি 0-100 থেকে পরিসরে স্কেল করা। যাইহোক, আপনি chxr
ব্যবহার করে যে কোনো পরিসর পরিবর্তন করতে পারেন, এবং আপনি chxs
ব্যবহার করে মান (উদাহরণস্বরূপ, মুদ্রার প্রতীক বা দশমিক স্থান দেখানোর জন্য) স্টাইল করতে পারেন।
আপনি যদি কাস্টম মান ব্যবহার করতে চান, উদাহরণস্বরূপ: "সোম, মঙ্গল, বুধ", আপনি chxl
প্যারামিটার ব্যবহার করতে পারেন। এই লেবেলগুলিকে অক্ষ বরাবর নির্দিষ্ট স্থানে রাখতে, chxp
প্যারামিটার ব্যবহার করুন।
অবশেষে, আপনি কাস্টম এবং সাংখ্যিক অক্ষ লেবেলের রঙ, আকার, প্রান্তিককরণ এবং অন্যান্য বৈশিষ্ট্যগুলি নির্দিষ্ট করতে chxs
এবং chxtc
প্যারামিটার ব্যবহার করতে পারেন।
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
এই বিভাগে নিম্নলিখিত বিষয়গুলি কভার করে:
- দৃশ্যমান অক্ষ (
chxt
) - কোন অক্ষগুলি প্রদর্শন করতে হবে৷ - অক্ষ পরিসর (
chxr
) - প্রতিটি অক্ষের জন্য মান পরিসীমা। - কাস্টম অক্ষ লেবেল (
chxl
) - অক্ষে দেখানোর জন্য কাস্টম মান। - অক্ষ লেবেল অবস্থান (
chxp
) - প্রতিটি অক্ষ বরাবর কাস্টম লেবেল স্থাপন। - অক্ষ লেবেল শৈলী (
chxs
) - অক্ষ লেবেলের রঙ, আকার, প্রান্তিককরণ এবং বিন্যাস। - অক্ষ টিক চিহ্ন শৈলী (
chxtc
) - একটি নির্দিষ্ট অক্ষের জন্য টিক চিহ্নের দৈর্ঘ্য।
দৃশ্যমান Axes chxt
বার, লাইন, রাডার, এবং স্ক্যাটার চার্ট ডিফল্টভাবে এক বা দুটি অক্ষ রেখা দেখায়, কিন্তু এই লাইনগুলিতে মান অন্তর্ভুক্ত নয়। আপনার অক্ষ রেখায় মান প্রদর্শন করতে, বা কোন অক্ষগুলি দেখানো হয়েছে তা পরিবর্তন করতে, আপনাকে অবশ্যই chxt
প্যারামিটার ব্যবহার করতে হবে। ডিফল্টরূপে, অক্ষের মানগুলি 0-100 এর মধ্যে থাকে, যদি না আপনি chxr
প্রপার্টি ব্যবহার করে স্পষ্টভাবে স্কেল না করেন। একটি লাইন চার্টে সমস্ত অক্ষ রেখা লুকানোর জন্য, cht
প্যারামিটারে চার্ট টাইপ মানের পরে :nda
উল্লেখ করুন (উদাহরণ: cht= lc:nda
)।
ডিফল্টরূপে, উপরের এবং নীচের অক্ষগুলি মান দ্বারা টিক চিহ্ন দেখায় না, যখন বাম এবং ডান অক্ষগুলি সেগুলি দেখায়। আপনি chxs
প্যারামিটার ব্যবহার করে এই আচরণ পরিবর্তন করতে পারেন।
বাক্য গঠন
chxt= <axis_1> ,..., <axis_n>
- < অক্ষ >
- চার্টে দেখানোর জন্য একটি অক্ষ। উপলব্ধ অক্ষগুলি হল:
-
x
- নিচের x-অক্ষ -
t
- শীর্ষ x-অক্ষ [ Google-o-Meter দ্বারা সমর্থিত নয় ] -
y
- বাম y-অক্ষ -
r
- ডান y-অক্ষ [ Google-o-Meter দ্বারা সমর্থিত নয় ]
-
আপনি একই ধরণের একাধিক অক্ষ নির্দিষ্ট করতে পারেন, উদাহরণস্বরূপ: cht=x,x,y
। এটি চার্টের নীচের দিকে x-অক্ষের দুটি সেট স্ট্যাক করবে। সাংখ্যিক মান দেখায় এমন একটি অক্ষ বরাবর কাস্টম লেবেল যোগ করার সময় এটি দরকারী (নীচের উদাহরণ দেখুন)। অক্ষগুলি ভিতরের বাইরে থেকে আঁকা হয়, তাই আপনার যদি x,x
থাকে, তাহলে প্রথম xটি সবচেয়ে ভিতরের অনুলিপিকে বোঝায়, পরের xটি পরবর্তী বাইরের অনুলিপিকে বোঝায় এবং আরও অনেক কিছু।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণটি একটি x-অক্ষ, একটি y-অক্ষ, একটি শীর্ষ অক্ষ (t), এবং একটি ডান অক্ষ (r) সহ একটি লাইন চার্ট দেখায়। যেহেতু কোনো লেবেল নির্দিষ্ট করা নেই, তাই সমস্ত অক্ষের জন্য চার্টটি 0 থেকে 100 এর পরিসরে ডিফল্ট। মনে রাখবেন যে ডিফল্টরূপে, উপরের এবং নীচের অক্ষগুলি লেবেল দ্বারা টিক চিহ্ন দেখায় না। |
|
আপনি একই মান একাধিকবার অন্তর্ভুক্ত করে প্রতিটি অক্ষের জন্য লেবেলের একাধিক সেট অন্তর্ভুক্ত করতে পারেন। এই উদাহরণটি x এর দুটি সেট এবং y-অক্ষের দুটি সেট দেখায়। শুধুমাত্র ডিফল্ট অক্ষ লেবেল ব্যবহার করার সময় এটি বিশেষভাবে উপযোগী নয়, যেমনটি এখানে দেখানো হয়েছে। কিন্তু আপনি chxl প্যারামিটার ব্যবহার করে প্রতিটি অক্ষের প্রতিটি কপির জন্য কাস্টম লেবেল নির্দিষ্ট করতে পারেন। | chxt=x,x,y,y chxt=x,x,y,y |
এই উদাহরণটি একটি x-অক্ষ, একটি y-অক্ষ, একটি উপরের টি-অক্ষ এবং একটি ডান r-অক্ষ সহ একটি অনুভূমিক বার চার্ট দেখায়। অক্ষ লেবেলগুলি বাদ দেওয়া হয়েছে, তাই চার্ট API x-অক্ষ এবং টি-অক্ষের জন্য 0 থেকে 100 এর পরিসর প্রদর্শন করে। y-অক্ষ এবং r-অক্ষের জন্য পরিসীমা বারের সংখ্যা দ্বারা নির্ধারিত হয়। এই ক্ষেত্রে, পাঁচটি বার আছে, তাই চার্ট এপিআই 0 থেকে 4 এর পরিসর প্রদর্শন করে। প্রথম লেবেলটি প্রথম বারের গোড়ায় কেন্দ্রীভূত হয়, দ্বিতীয় লেবেলটি দ্বিতীয় বারের গোড়ায় কেন্দ্রীভূত হয় এবং আরও অনেক কিছু। . |
|
আপনি চার্টের প্রকারের পরে :nda উল্লেখ করে একটি লাইন চার্টে ডিফল্ট অক্ষগুলিকে দমন করতে পারেন। | cht=lc:nda |
অক্ষ রেঞ্জ chxr
আপনি chxr প্যারামিটার ব্যবহার করে প্রতিটি অক্ষে স্বতন্ত্রভাবে প্রদর্শিত মানগুলির পরিসর নির্দিষ্ট করতে পারেন। মনে রাখবেন যে এটি চার্ট উপাদানগুলির স্কেল পরিবর্তন করে না , শুধুমাত্র অক্ষ লেবেলের স্কেল পরিবর্তন করে। আপনি যদি অক্ষ সংখ্যাগুলিকে প্রকৃত ডেটা মানগুলি বর্ণনা করতে চান তবে যথাক্রমে আপনার ডেটা বিন্যাস পরিসরের নিম্ন এবং উপরের মানগুলিতে < start_val > এবং < end_val > সেট করুন। আরও তথ্যের জন্য অক্ষ স্কেলিং দেখুন।
আপনি chxt
প্যারামিটার ব্যবহার করে একটি অক্ষকে দৃশ্যমান করতে হবে যদি আপনি এর পরিসীমা নির্দিষ্ট করতে চান।
কাস্টম অক্ষ মান নির্দিষ্ট করতে, chxl
প্যারামিটার ব্যবহার করুন।
বাক্য গঠন
পাইপ অক্ষর ( |
) ব্যবহার করে একাধিক অক্ষ লেবেল রেঞ্জ আলাদা করুন।
chxr= <axis_index>,<start_val>,<end_val>,<opt_step> |...| <axis_index>,<start_val>,<end_val>,<opt_step>
- <axis_index>
- কোন অক্ষে লেবেল প্রয়োগ করতে হবে। এটি
chxt
দ্বারা নির্দিষ্ট করা অক্ষ অ্যারের মধ্যে একটি শূন্য-ভিত্তিক সূচক। উদাহরণস্বরূপ,chxt=x,r,y
তে r-অক্ষ 1 হবে। - < start_val >
- একটি সংখ্যা, এই অক্ষের জন্য নিম্ন মান সংজ্ঞায়িত করে।
- < end_val >
- একটি সংখ্যা, এই অক্ষের জন্য উচ্চ মান সংজ্ঞায়িত করে।
- < opt_step >
- [ ঐচ্ছিক ] অক্ষে টিকগুলির মধ্যে গণনা ধাপ। কোন ডিফল্ট ধাপ মান নেই; ধাপটি সুন্দরভাবে ফাঁকা লেবেলের একটি সেট দেখানোর চেষ্টা করার জন্য গণনা করা হয়।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণটি বাম এবং ডান y-অক্ষ ( প্রতিটি অক্ষের একটি নির্দিষ্ট পরিসর রয়েছে। যেহেতু কোনও লেবেল বা অবস্থান নির্দিষ্ট করা নেই, মানগুলি প্রদত্ত পরিসর থেকে নেওয়া হয় এবং সেই সীমার মধ্যে সমানভাবে ব্যবধান করা হয়। লাইন চার্টে, মানগুলি সমানভাবে x-অক্ষ বরাবর ছড়িয়ে আছে। অক্ষের দিকটি r-অক্ষ (সূচক |
|
এই উদাহরণে, x-অক্ষের জন্য মান নির্দিষ্ট করা হয়েছে। অক্ষের লেবেলগুলি অক্ষ বরাবর সমানভাবে ব্যবধানযুক্ত। < opt_step > প্যারামিটারের জন্য পাঁচ ( | |
কাস্টম অক্ষ লেবেল chxl
আপনি chxl
প্যারামিটার ব্যবহার করে যেকোনো অক্ষে কাস্টম স্ট্রিং অক্ষ লেবেল নির্দিষ্ট করতে পারেন। আপনি আপনার পছন্দ অনুযায়ী অনেক লেবেল নির্দিষ্ট করতে পারেন. আপনি যদি একটি অক্ষ প্রদর্শন করেন ( chxt
প্যারামিটার ব্যবহার করে) এবং কাস্টম লেবেল নির্দিষ্ট না করেন, তাহলে মানক, সংখ্যাসূচক লেবেল প্রয়োগ করা হবে। একটি কাস্টম সাংখ্যিক পরিসর নির্দিষ্ট করতে, পরিবর্তে chxr
প্যারামিটার ব্যবহার করুন।
আপনার লেবেলের জন্য অক্ষ বরাবর নির্দিষ্ট অবস্থান সেট করতে, chxp
প্যারামিটার ব্যবহার করুন।
বাক্য গঠন
আপনি লেবেল করতে চান এমন প্রতিটি অক্ষের জন্য একটি প্যারামিটার সেট নির্দিষ্ট করুন। পাইপ অক্ষর ( |
) ব্যবহার করে লেবেলের একাধিক সেট আলাদা করুন।
chxl= <axis_index>:|<label_1>|...|<label_n> |...| <axis_index>:|<label_1>|...|<label_n>
- <axis_index>
- কোন অক্ষে লেবেল প্রয়োগ করতে হবে। এটি
chxt
প্যারামিটার অ্যারের একটি সূচক। উদাহরণস্বরূপ, আপনার যদিchxt=x,x,y,y
থাকে তাহলে সূচক 0 হবে প্রথম x-অক্ষ, 1 হবে দ্বিতীয় x-অক্ষ। - <label_1> | ... |< লেবেল_এন >
- এই অক্ষ বরাবর স্থাপন করতে এক বা একাধিক লেবেল। এই স্ট্রিং বা সংখ্যা মান হতে পারে; স্ট্রিং উদ্ধৃতি হতে হবে না. label_1 অক্ষের সর্বনিম্ন অবস্থানে প্রদর্শিত হয়, এবং label_n সর্বোচ্চ অবস্থানে প্রদর্শিত হয়। অতিরিক্ত লেবেল তাদের মধ্যে সমানভাবে ফাঁক করা হয়. একটি + চিহ্ন দিয়ে শূন্যস্থান নির্দেশ করুন। একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। একটি পাইপ অক্ষর সঙ্গে পৃথক লেবেল. দ্রষ্টব্য:
chxl
প্যারামিটারে চূড়ান্ত লেবেলের পরে একটি পাইপ রাখবেন না।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই চার্টটি দেখায় কিভাবে দুটি অক্ষে কাস্টম লেবেল যোগ করতে হয়। লক্ষ্য করুন কিভাবে মানগুলি সমানভাবে ব্যবধানে রাখা হয় এবং কিভাবে শেষ | chxt=x,y |
এই উদাহরণে বাম এবং ডান y-অক্ষে অক্ষের লেবেল রয়েছে ( |
|
এই উদাহরণে বাম এবং ডান y-অক্ষে অক্ষের লেবেল রয়েছে ( এই উদাহরণটি বাম y-অক্ষের অক্ষ লেবেলের জন্য ডিফল্ট মান ব্যবহার করে। |
|
আপনি যদি একটি সম্পূর্ণ অক্ষ বর্ণনা করার জন্য একটি সাধারণ লেবেল যোগ করতে চান (উদাহরণস্বরূপ, একটি অক্ষকে "খরচ" এবং অন্যটি "ছাত্র" লেবেল করতে), প্রতিটি পাশে একটি অতিরিক্ত অক্ষ যোগ করতে | chxt=x,x,y,y |
অক্ষ লেবেল অবস্থান chxp
ডিফল্ট লেবেল ব্যবহার করে বা chxl
ব্যবহার করে নির্দিষ্ট করা কাস্টম লেবেল ব্যবহার করে কোন অক্ষের লেবেল দেখাতে হবে তা আপনি নির্দিষ্ট করতে পারেন। আপনি যদি এই পরামিতি ব্যবহার করে সঠিক অবস্থান নির্দিষ্ট না করেন, তাহলে লেবেলগুলি সমানভাবে এবং অক্ষ বরাবর একটি ডিফল্ট ধাপের মানের মধ্যে থাকবে। আপনি যদি chxl
নির্দিষ্ট না করেন, তাহলে টিক মার্ক লেবেলগুলি হবে ডিফল্ট মান (সাধারণত ডেটা মান, বা বার চার্টে বার নম্বর)।
বাক্য গঠন
পাইপ অক্ষর ( |
) ব্যবহার করে একাধিক পজিশনিং সেট আলাদা করুন।
chxp= <axis_1_index>,<label_1_position>,...,<label_n_position> |...| <axis_m_index>,<label_1_position>,...,<label_n_position>
- <axis_index>
- যে অক্ষের জন্য আপনি অবস্থান নির্দিষ্ট করছেন। এটি
chxt
প্যারামিটার অ্যারের একটি সূচক। উদাহরণস্বরূপ, আপনার যদিchxt=x,x,y,y
থাকে তাহলে সূচক 0 হবে প্রথম x-অক্ষ, 1 হবে দ্বিতীয় x-অক্ষ, ইত্যাদি। - < label_1_position >,...,< label_n_position >
- অক্ষ বরাবর লেবেলের অবস্থান। এটি সাংখ্যিক মানগুলির একটি কমা দ্বারা পৃথক করা তালিকা, যেখানে প্রতিটি মান
chxl
অ্যারেতে সংশ্লিষ্ট লেবেলের অবস্থান নির্ধারণ করে: প্রথম এন্ট্রিটি প্রথম লেবেলে প্রযোজ্য, এবং আরও অনেক কিছু। অবস্থান হল সেই অক্ষের পরিসরের একটি মান। মনে রাখবেন যে এটি সর্বদা 0-100 হবে যদি না আপনিchxr
ব্যবহার করে একটি কাস্টম পরিসর নির্দিষ্ট না করেন। আপনার কাছে সেই অক্ষের জন্য যতগুলি লেবেল আছে ততগুলি অবস্থান থাকতে হবে৷
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণে চার্টে নির্দিষ্ট অবস্থানে r-অক্ষ লেবেল অন্তর্ভুক্ত রয়েছে। লেবেল পাঠ্যটি | |
এই উদাহরণটি ডিফল্ট লেবেল মানগুলি প্রদর্শন করে, তবে শুধুমাত্র নির্দিষ্ট স্থানে। |
chxt=x,y chxt=x,y chxp নির্দিষ্ট করা নেই |
অক্ষ লেবেল শৈলী chxs
আপনি কাস্টম লেবেল এবং ডিফল্ট লেবেল মান উভয় অক্ষ লেবেলের জন্য ফন্টের আকার, রঙ এবং প্রান্তিককরণ নির্দিষ্ট করতে পারেন। একই অক্ষের সমস্ত লেবেলের বিন্যাস একই। আপনার যদি একটি অক্ষের একাধিক কপি থাকে তবে আপনি প্রতিটিকে আলাদাভাবে বিন্যাস করতে পারেন। আপনি একটি লেবেল স্ট্রিং এর বিন্যাসও নির্দিষ্ট করতে পারেন, উদাহরণস্বরূপ মুদ্রার প্রতীক বা ট্রেলিং শূন্য দেখানোর জন্য।
ডিফল্টরূপে, উপরের এবং নীচের অক্ষগুলি মান দ্বারা টিক চিহ্ন দেখায় না, যখন বাম এবং ডান অক্ষগুলি সেগুলি দেখায়।
বাক্য গঠন
একাধিক অক্ষের মান একটি পাইপ অক্ষর ( |
) ব্যবহার করে আলাদা করা উচিত।
chxs= <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color> |...| <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color>
- < axis_index >
- যে অক্ষে এটি প্রযোজ্য। এটি
chxt
প্যারামিটারে একটি শূন্য-ভিত্তিক সূচক। - < opt_format_string >
- [ ঐচ্ছিক ] এটি একটি ঐচ্ছিক বিন্যাস স্ট্রিং যেটি ব্যবহার করা হলে, অক্ষ সূচক নম্বরের পরপরই একটি ইন্টারভেনিং কমা ছাড়াই অনুসরণ করে। এটি একটি আক্ষরিক অক্ষর N দিয়ে শুরু হয় এবং নিম্নলিখিত মানগুলি অনুসরণ করে, সমস্ত ঐচ্ছিক:
N< preceding_text >*< number_type >< decimal_places >zs< x or y >*< following_text >
এখানে প্রতিটি উপাদানের অর্থ হল:-
<preceding_text>
- প্রতিটি মানের আগে আক্ষরিক পাঠ্য। -
*...*
- আক্ষরিক তারকাচিহ্নে মোড়ানো একটি ঐচ্ছিক ব্লক, যেখানে আপনি সংখ্যার জন্য বিন্যাসের বিবরণ নির্দিষ্ট করতে পারেন। নিম্নলিখিত মান সমর্থিত, এবং সব ঐচ্ছিক:-
<number_type>
- সংখ্যার বিন্যাস, সাংখ্যিক মানের জন্য। নিচের কোনো একটি পছন্দ কর:-
f
- [ ডিফল্ট ] ফ্লোটিং পয়েন্ট ফরম্যাট। < decimal_places > মান সহ নির্ভুলতা উল্লেখ করার কথা বিবেচনা করুন। -
p
- শতাংশ বিন্যাস। একটি % চিহ্ন স্বয়ংক্রিয়ভাবে যুক্ত হয়। দ্রষ্টব্য: এই বিন্যাসটি ব্যবহার করার সময়, ডেটা মান 0.0 — 1.0 মানচিত্র থেকে 0 — 100% পর্যন্ত (উদাহরণস্বরূপ, 0.43 43% হিসাবে দেখানো হবে)। -
e
- বৈজ্ঞানিক স্বরলিপি বিন্যাস। -
c< CUR >
- উপযুক্ত মুদ্রা চিহ্নিতকারীর সাথে নির্দিষ্ট মুদ্রায় নম্বর ফর্ম্যাট করুন। একটি তিন-অক্ষরের মুদ্রা কোড দিয়ে< CUR >
প্রতিস্থাপন করুন। উদাহরণ: ইউরোর জন্যcEUR
। আপনি ISO ওয়েব সাইটে কোডগুলির একটি তালিকা খুঁজে পেতে পারেন, যদিও সমস্ত প্রতীক সমর্থিত নয়।
-
-
<decimal_places>
- একটি পূর্ণসংখ্যা নির্দিষ্ট করে যে কত দশমিক স্থান দেখাতে হবে। এই দৈর্ঘ্যের মানটি বৃত্তাকার (ছাঁটা নয়)। ডিফল্ট হল 2। -
z
- পিছনের শূন্য প্রদর্শন করুন। ডিফল্ট না . -
s
- প্রদর্শন গ্রুপ বিভাজক. ডিফল্ট না . -
x
বাy
-নির্দিষ্ট হিসাবে x- বা y- স্থানাঙ্ক থেকে ডেটা প্রদর্শন করুন। x ডেটার অর্থ চার্টের ধরন অনুসারে পরিবর্তিত হয়: এর অর্থ কী তা নির্ধারণ করতে আপনার চার্ট নিয়ে পরীক্ষা করুন। ডিফল্ট হল 'y' ।
-
-
< following_text >
- প্রতিটি মান অনুসরণ করার জন্য আক্ষরিক পাঠ্য।
-
- < opt_label_color >
- RRGGBB হেক্সাডেসিমেল বিন্যাসে অক্ষ পাঠে (কিন্তু অক্ষরেখা নয়) প্রয়োগ করার জন্য রঙ। অক্ষরেখার রঙ opt_axis_color ব্যবহার করে আলাদাভাবে নির্দিষ্ট করা হয়েছে। ডিফল্ট ধূসর।
- < opt_font_size >
- [ ঐচ্ছিক ] পিক্সেলে ফন্টের আকার নির্দিষ্ট করে। এই পরামিতি ঐচ্ছিক।
- < opt_alignment >
- [ ঐচ্ছিক ] লেবেল প্রান্তিককরণ। উপরের বা নীচের অক্ষের জন্য, এটি বর্ণনা করে কিভাবে লেবেলটি উপরে বা নীচে টিক চিহ্নের সাথে সারিবদ্ধ হয়; বাম বা ডান অক্ষের জন্য, এটি বর্ণনা করে যে কীভাবে তার আবদ্ধ বাক্সের ভিতরে সারিবদ্ধ হয়, যা অক্ষকে স্পর্শ করে। নিম্নলিখিত সংখ্যাগুলির মধ্যে একটি নির্দিষ্ট করুন:
-
-1
- উপরে বা নীচে : লেবেলগুলি টিক্সের ডানদিকে থাকে; বাম বা ডান : লেবেলগুলি তাদের এলাকায় বাম-সারিবদ্ধ। r-অক্ষ লেবেলের জন্য ডিফল্ট। -
0
- উপরে বা নীচে : লেবেলগুলি টিক্সের উপর কেন্দ্রীভূত হয়; বাম বা ডান : লেবেলগুলি তাদের এলাকায় কেন্দ্রীভূত। x- এবং t-অক্ষ লেবেলের জন্য ডিফল্ট। -
1
- উপরে বা নীচে : লেবেলগুলি টিক্সের বাম দিকে রয়েছে; বাম বা ডান : লেবেলগুলি তাদের এলাকায় ডান-সারিবদ্ধ। y-অক্ষ লেবেলের জন্য ডিফল্ট।
-
- < opt_axis_or_tick >
- [ ঐচ্ছিক; Google-o-meter-এ সমর্থিত নয় ] এই অক্ষের জন্য টিক চিহ্ন এবং/বা অক্ষরেখা দেখাতে হবে কিনা। টিক চিহ্ন এবং অক্ষ রেখাগুলি কেবলমাত্র ভিতরের অক্ষের জন্য উপলব্ধ (উদাহরণস্বরূপ, তারা দুটি x-অক্ষের বাইরের জন্য সমর্থিত নয়)। নিম্নলিখিত মানগুলির মধ্যে একটি ব্যবহার করুন:
-
l
(ছোট হাতের 'L') - শুধুমাত্র অক্ষরেখা আঁকুন। -
t
- শুধুমাত্র টিক চিহ্ন আঁকুন। টিক চিহ্ন হল অক্ষ লেবেলের পাশের ছোট লাইন। -
lt
- [ ডিফল্ট ] সমস্ত লেবেলের জন্য একটি অক্ষরেখা এবং টিক চিহ্ন উভয়ই আঁকুন। -
_
- (আন্ডারস্কোর) অক্ষরেখা বা টিক চিহ্ন আঁকুন না। আপনি একটি অক্ষ রেখা লুকাতে চান, এই মান ব্যবহার করুন.
-
- < টিক_রং >
- [ ঐচ্ছিক ; Google-o-meter-এ সমর্থিত নয় ] RRGGBB হেক্সাডেসিমেল বিন্যাসে টিক চিহ্নের রঙ। ডিফল্ট ধূসর।
- < opt_axis_color >
- [ ঐচ্ছিক ] এই অক্ষ রেখার রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । ডিফল্ট ধূসর।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
হরফের আকার এবং রঙ দ্বিতীয় x-অক্ষের জন্য নির্দিষ্ট করা হয়েছে (জান, ফেব্রুয়ারি, মার্চ)। | |
ফন্টের আকার, রঙ এবং প্রান্তিককরণ সঠিক y-অক্ষের জন্য নির্দিষ্ট করা হয়েছে। টিক চিহ্ন, কিন্তু কোন অক্ষরেখা আঁকা হয় না। | |
এই চার্টে তিনটি ডেটা সেট রয়েছে এবং প্রতি সিরিজে একটি করে অক্ষ লেবেলের তিনটি সেট দেখায়। লেবেলের প্রতিটি সেট একটি কাস্টম ফরম্যাটিং স্ট্রিং ব্যবহার করে ফর্ম্যাট করা হয়েছে, যেমন এখানে বর্ণনা করা হয়েছে:
অক্ষ লেবেল রেঞ্জগুলি | chd=s: |
অক্ষ টিক মার্ক শৈলী chxtc
আপনি নির্দিষ্ট অক্ষের জন্য দীর্ঘ টিক চিহ্ন নির্দিষ্ট করতে পারেন। সাধারণত এটি একটি চার্টের দৈর্ঘ্য জুড়ে একটি টিক চিহ্ন প্রসারিত করতে ব্যবহৃত হয়। টিক চিহ্নের রঙ পরিবর্তন করতে chxs
প্যারামিটার ব্যবহার করুন।
একাধিক অক্ষের মান একটি পাইপ অক্ষর ( |
) ব্যবহার করে আলাদা করা উচিত। একটি সিরিজের মধ্যে মান একটি কমা দ্বারা পৃথক করা উচিত.
বাক্য গঠন
chxtc= <axis_index_1>,<tick_length_1>,...,<tick_length_n> |...| <axis_index_m>,<tick_length_1>,...,<tick_length_n>
- < axis_index >
- যে অক্ষে এটি প্রযোজ্য। এটি
chxt
প্যারামিটারে একটি শূন্য-ভিত্তিক সূচক। একটি বার ডিলিমিটার ব্যবহার করে বিভিন্ন অক্ষের জন্য পৃথক মান। - < টিক_দৈর্ঘ্য_1 >,...,< টিক_দৈর্ঘ্য_এন >
- সেই অক্ষে টিক চিহ্নের দৈর্ঘ্য, পিক্সেলে। যদি একটি একক মান দেওয়া হয়, তবে এটি সমস্ত মানগুলিতে প্রযোজ্য হবে; যদি একাধিক মান দেওয়া হয়, অক্ষের টিক চিহ্নগুলি সেই অক্ষের মানগুলির তালিকার মধ্য দিয়ে ঘুরবে৷ ইতিবাচক মানগুলি চার্ট এলাকার বাইরে আঁকা হয় এবং চার্টের সীমানা দ্বারা ক্রপ করা হয়। সর্বাধিক ধনাত্মক মান হল 25। নেতিবাচক মানগুলি চার্ট এলাকার ভিতরে আঁকা হয় এবং চার্ট এলাকার সীমানা দ্বারা ক্রপ করা হয়।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
লম্বা লাল টিক চিহ্ন তৈরি করতে
| |
এই তালিকাটি বিকল্প টিক দৈর্ঘ্য প্রদর্শন করে। chxtc y-অক্ষের জন্য দুটি টিক দৈর্ঘ্যের মান নির্দিষ্ট করে (5 এবং 15), এবং দুটি মানের মধ্যে বিকল্পভাবে চার্টে আঁকা টিকগুলি। | chxt=x,y |
ব্যাকগ্রাউন্ড ফিলস chf
[ সমস্ত চার্ট ]
আপনি চার্ট ডেটা এলাকা এবং/অথবা পুরো চার্ট পটভূমির জন্য রঙ এবং শৈলী পূরণ করতে পারেন। ভরাটের প্রকারগুলি সলিড ফিল, স্ট্রাইপড ফিলস এবং গ্রেডিয়েন্ট অন্তর্ভুক্ত করে। আপনি বিভিন্ন এলাকার জন্য বিভিন্ন ফিল নির্দিষ্ট করতে পারেন (উদাহরণস্বরূপ, পুরো চার্ট এলাকা, বা শুধুমাত্র ডেটা এলাকা)। চার্ট এরিয়া ফিল ব্যাকগ্রাউন্ড ফিল ওভাররাইট করে। সমস্ত ফিলগুলি chf
প্যারামিটার ব্যবহার করে নির্দিষ্ট করা হয়েছে, এবং আপনি পাইপ অক্ষর ( | ) এর সাথে মানগুলি আলাদা করে একই চার্টে বিভিন্ন ধরনের ফিল (সলিড, স্ট্রাইপ, গ্রেডিয়েন্ট) মিশ্রিত করতে পারেন। চার্ট এলাকা ওভাররাইট চার্ট ব্যাকগ্রাউন্ড ফিল করে।
সলিড ফিলস chf
[ সমস্ত চার্ট ]
আপনি ব্যাকগ্রাউন্ড এবং/অথবা চার্ট এলাকার জন্য একটি কঠিন ফিল নির্দিষ্ট করতে পারেন, অথবা পুরো চার্টে একটি স্বচ্ছতার মান নির্ধারণ করতে পারেন। আপনি পাইপ অক্ষর ( |
) ব্যবহার করে একাধিক পূরণ নির্দিষ্ট করতে পারেন। (মানচিত্র: শুধুমাত্র পটভূমি)।
বাক্য গঠন
chf=<fill_type>,s,<color>|...
- < fill_type >
- চার্টের অংশটি পূরণ করা হচ্ছে। নিম্নলিখিত মানগুলির মধ্যে একটি নির্দিষ্ট করুন:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। মানচিত্র চার্টের জন্য সমর্থিত নয়। -
a
- পুরো চার্ট (পটভূমি সহ) স্বচ্ছ করুন।< color >
এর প্রথম ছয়টি সংখ্যা উপেক্ষা করা হয় এবং শুধুমাত্র শেষ দুটি (স্বচ্ছতার মান) পুরো চার্টে প্রয়োগ করা হয় এবং সমস্ত পূরণ করা হয়। -
b <index>
- বার সলিড ফিলস (শুধু বার চার্ট)। একটি কঠিন রঙ দিয়ে পূরণ করতে বারের সিরিজ সূচকের সাথে < index > প্রতিস্থাপন করুন। প্রভাবটি একটি বার চার্টেchco
নির্দিষ্ট করার অনুরূপ। উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- s
- একটি কঠিন বা স্বচ্ছতা পূরণ নির্দেশ করে।
- < রঙ >
- ভরাট রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । স্বচ্ছতার জন্য, প্রথম ছয় সংখ্যা উপেক্ষা করা হয়, কিন্তু যেভাবেই হোক অন্তর্ভুক্ত করা আবশ্যক।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি পুরো চার্টে 50% স্বচ্ছতা প্রয়োগ করে (হেক্সাডেসিমেলে 80 হল 128, বা প্রায় 50% স্বচ্ছতা)। চার্টের মাধ্যমে দেখানো টেবিল সেল ব্যাকগ্রাউন্ড লক্ষ্য করুন। | |
গ্রেডিয়েন্ট ফিলস chf
[ লাইন, বার, গুগল-ও-মিটার, রাডার, স্ক্যাটার, ভেন ]
আপনি চার্ট এলাকা বা ব্যাকগ্রাউন্ডে এক বা একাধিক গ্রেডিয়েন্ট ফিল প্রয়োগ করতে পারেন। গ্রেডিয়েন্ট ফিলগুলি এক রঙ থেকে অন্য রঙে বিবর্ণ হয়। (পাই, গুগল-ও-মিটার চার্ট: শুধুমাত্র ব্যাকগ্রাউন্ড।)
প্রতিটি গ্রেডিয়েন্ট ফিল একটি কোণ নির্দিষ্ট করে, এবং তারপরে দুটি বা ততোধিক রং একটি নির্দিষ্ট স্থানে নোঙ্গর করে। এক নোঙ্গর থেকে অন্য নোঙ্গরে যাওয়ার সময় রঙ পরিবর্তিত হয়। আপনার অবশ্যই আলাদা আলাদা < color_centerpoint > মান সহ কমপক্ষে দুটি রঙ থাকতে হবে, যাতে একটি অন্যটিতে বিবর্ণ হতে পারে। প্রতিটি অতিরিক্ত গ্রেডিয়েন্ট একটি < color >,< color_centerpoint > জোড়া দ্বারা নির্দিষ্ট করা হয়।
বাক্য গঠন
chf=<fill_type>,lg,<angle>,<color_1>,<color_centerpoint_1> ,..., <color_n>,<color_centerpoint_n>
- < fill_type >
- চার্ট এলাকা পূরণ করতে হবে। নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। -
b <index>
- বার গ্রেডিয়েন্ট পূরণ করে (শুধু বার চার্ট)। একটি গ্রেডিয়েন্ট দিয়ে পূরণ করতে বারের সিরিজ সূচকের সাথে < index > প্রতিস্থাপন করুন। উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- এলজি
- একটি গ্রেডিয়েন্ট ফিল নির্দিষ্ট করে।
- < কোণ >
- 0 (অনুভূমিক) থেকে 90 (উল্লম্ব) পর্যন্ত গ্রেডিয়েন্টের কোণ নির্দিষ্ট করে এমন একটি সংখ্যা।
- < রঙ >
- RRGGBB হেক্সাডেসিমেল বিন্যাসে পূরণের রঙ।
- < color_centerpoint >
- রঙের জন্য অ্যাঙ্কর পয়েন্ট নির্দিষ্ট করে। এটি অন্য অ্যাঙ্কারের কাছে যাওয়ার সাথে সাথে রঙটি এই বিন্দু থেকে বিবর্ণ হতে শুরু করবে। মান পরিসীমা 0.0 (নীচের বা বাম প্রান্ত) থেকে 1.0 (উপর বা ডান প্রান্ত), < কোণ > দ্বারা নির্দিষ্ট কোণে কাত।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
চার্ট এলাকায় একটি অনুভূমিক রৈখিক গ্রেডিয়েন্ট আছে, শূন্য ডিগ্রী ( রঙগুলি হল পীচ ( চার্টের পটভূমি ধূসর রঙে আঁকা হয়েছে ( | |
চার্ট এলাকায় একটি তির্যক (নীচে বাম থেকে উপরে ডানদিকে) রৈখিক গ্রেডিয়েন্ট রয়েছে, যা পঁয়তাল্লিশ ডিগ্রি কোণ ( পীচ ( নীল ( চার্টের পটভূমি ধূসর রঙে আঁকা হয়েছে ( | |
চার্ট এলাকায় একটি উল্লম্ব (উপর থেকে নীচে) রৈখিক গ্রেডিয়েন্ট রয়েছে, যা নব্বই ডিগ্রি ( নীল ( পীচ ( চার্টের পটভূমি ধূসর রঙে আঁকা হয়েছে ( | |
স্ট্রিপড ফিলস chf
[ লাইন, বার, গুগল-ও-মিটার, রাডার, স্ক্যাটার, ভেন ]
আপনি আপনার চার্ট এলাকা বা পুরো চার্টের জন্য একটি ডোরাকাটা ব্যাকগ্রাউন্ড ফিল নির্দিষ্ট করতে পারেন। (পাই, গুগল-ও-মিটার চার্ট: শুধুমাত্র ব্যাকগ্রাউন্ড।)
বাক্য গঠন
chf= <fill_type>,ls,<angle>,<color_1>,<width_1> ,..., <color_n>,<width_n>
- < fill_type >
- চার্ট এলাকা পূরণ করতে হবে। নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ -
b <index>
- বার ডোরাকাটা ভরাট (শুধুমাত্র বার চার্ট)। স্ট্রাইপ দিয়ে পূরণ করতে বারের সিরিজ সূচী দিয়ে < index > প্রতিস্থাপন করুন। উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- ls
- লিনিয়ার স্ট্রাইপ ফিল নির্দিষ্ট করে।
- < কোণ >
- সমস্ত স্ট্রাইপের কোণ, y-অক্ষের সাপেক্ষে। উল্লম্ব স্ট্রাইপের জন্য
0
বা অনুভূমিক স্ট্রাইপের জন্য90
ব্যবহার করুন। - < রঙ >
- RRGGBB হেক্সাডেসিমেল বিন্যাসে এই স্ট্রাইপের রঙ। প্রতিটি অতিরিক্ত স্ট্রাইপের জন্য < রঙ > এবং < প্রস্থ > পুনরাবৃত্তি করুন। আপনার কমপক্ষে দুটি স্ট্রাইপ থাকতে হবে। চার্ট পূর্ণ না হওয়া পর্যন্ত স্ট্রাইপগুলি বিকল্প।
- < প্রস্থ >
- এই স্ট্রাইপের প্রস্থ,
0
থেকে1
পর্যন্ত, যেখানে1
হল চার্টের সম্পূর্ণ প্রস্থ। চার্টটি পূরণ না হওয়া পর্যন্ত স্ট্রাইপগুলি পুনরাবৃত্তি করা হয়। প্রতিটি অতিরিক্ত স্ট্রাইপের জন্য < রঙ > এবং < প্রস্থ > পুনরাবৃত্তি করুন। আপনার কমপক্ষে দুটি স্ট্রাইপ থাকতে হবে। চার্ট পূর্ণ না হওয়া পর্যন্ত স্ট্রাইপগুলি বিকল্প।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
| chf= |
| chf= |
ডেটা ফাংশন chfd
[ সমস্ত chd
চার্ট ]
আপনি muParser ফাংশন সিনট্যাক্স ব্যবহার করে চার্ট ডেটা চালানোর জন্য একটি কাস্টম ফাংশন নির্দিষ্ট করতে পারেন। ফাংশনে ব্যবহৃত ডেটা দুটি উৎসের একটি থেকে আসতে পারে:
-
chd
থেকে একটি ডেটা সিরিজ -chd
এ নির্দিষ্ট সিরিজ থেকে ডেটা টানা হয়। -
chfd
প্যারামিটারে ঘোষিত মানগুলির একটি পরিসর - আপনি একটি নির্বিচারে ডেটা পরিসরের জন্য একটি শুরু, থামা এবং পদক্ষেপের মান ঘোষণা করেন।
এটা মনে রাখা গুরুত্বপূর্ণ যে সমস্ত ক্ষেত্রে আপনাকে অবশ্যই chd
এ বিদ্যমান সিরিজে আউটপুট বরাদ্দ করতে হবে; যে সিরিজ ফাংশন আউটপুট দ্বারা ওভাররাইট করা হবে. The chart is rendered only after all functions have been processes, so if you assign multiple functions to output to the same data series, the functions will be run in the order given, but only the output of the final function will be plotted on the chart. Note that you can chain functions, so that one function can take as input a series that was output by a previous function.
To assign colors or chm
markers to a function line, assign the colors or markers to the function's series index. Note that markers are placed according to the data after it has been manipulated by the function.
বাক্য গঠন
chfd= <output_series_index>,<function_data>,<function_string> |...| <output_series_index>,<function_data>,<function_string>
- < output_series_index >
- Zero-based index of a data series in
chd
to which the function output will be written. Any existing data will be completely overwritten by the function output. If a series is not being used as input for a function, best practice is to assign a single dummy value to that series. - < function_data >
- The variables and data to plot. The data can be from a range that you define, or from one of the
chd
data series. You can specify multiple variables for each function, using a ; (semicolon) delimiter for multiple variables. Note that if you define multiple variables for a single function, and these variables have a different number of points, the function will stop when it reaches the first endpoint. For example, if a function defines both x=1—5 step 1 and y=1—10 step 1, the function will end when it reaches the fifth point.
< variable_name >,< input_series_index >
বা
< variable_name >,< start >,< end >,< step >
- variable_name - An arbitrary string name for the variable. Use this in the function defined by function_string .
- input_series_index - The index of a
chd
data series to use as input data. - start - The numeric start value of a range.
- end - The numeric end value of a range.
- step - The numeric step value from start to end . Can be positive or negative, but cannot be zero.
x,0,100,1
declares a variable namedx
with values 0, 1, 2, ... 100.x,0,100,1;r,0,3.1,.1
declares the samex
variable plus a variable namedr
with values 0, 0.1, 0.2, ..., 3.0, 3.1.x,0
declares a variable named x that uses the data from the firstchd
series. These variables will be used by function_string . They will not be plotted on the graph unless you specify them in function_string . The smaller the step, the smoother your graph. - < function_string >
- Your function, written in the muParser syntax . The function is applied to the variables and data specified in variable_data . You can only reference the variables declared in this local function set, not in another piped set of
chfd
parameters. Summary muParser functions are not supported (min, max sum, avg). IMPORTANT: Remember to use%2B
instead of+
in your functions!
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
A simple sine wave. Some things to notice:
| cht=lc |
This line uses data from the chd parameter. | chd=t:5,10 |
A mix of function and non-function lines. Notice how the colors are specified by the series color parameter Notice the placement of markers on the function output; the data points are calculated from start , end , and step , so if your range is 0—11 step 0.1, point 0 is 0, point 1 is 0.1 and so on, until point 110, which has a value of 11. | chd=t: |
To define a function in two dimensions, use an
| cht=lxy |
The Try clicking these images to open and play with them in the chart playground; you'll get hooked! |
This document describes how to create pie charts using the Chart API.
সুচিপত্র
চার্ট-নির্দিষ্ট বৈশিষ্ট্য
| সাধারণ বৈশিষ্ট্য
|
ওভারভিউ
Pie charts are good for showing simple proportional part-to-whole information. You can create a single series pie chart, where each series is made of multiple slices, or multi-series, concentric charts.
Each series describes one pie, and each data value specifies one slice. When using nested pie charts (described below), use multiple series.
To display the text associated with a slice, you will have to use either pie chart labels or a chart legend . Pie chart labels are text around the chart with lines pointing toward the slice. Legends are text associated by color.
লেবেল | কিংবদন্তি | Labels and Legend |
---|---|---|
chl=January|February|March|April | chdl=January|February|March|April | chl=January|February|March|April |
Values are displayed relative to each other: so a chart with values 1,2,3 will look the same as a chart with values 100,200,300. However, when using text format data, values greater than 100 are trimmed to 100, so you will need to use text format with custom scaling to display slices greater than 100 properly (use the chds
parameter with min/max values of chds=0,< max-slice-size >
).
Negative values display as empty slices of the appropriate size.
চার্টের ধরন
There are three general types of pie charts that you can create: flat, concentric, or 3D. Specify a pie chart with the following syntax:
বাক্য গঠন
cht=<chart_type>
Where < chart_type >
is one of the the following types:
প্যারামিটার | বর্ণনা | উদাহরণ |
---|---|---|
| Two dimensional pie chart. Supply one data series only; subsequent data series are ignored. By default, pie segment colors are interpolated from dark orange to pale yellow. Specify other colors as described in Series Colors . Specify labels with The Google Chart API calculates the circle's radius from the minimum of width and height specified in the chart size ( | |
| A three-dimensional pie chart. Specify data and formatting in the same way as for two dimensional pie charts, above. If you are including labels in a three-dimensional pie chart, you probably need to specify the size of the width to be 2.5 times the size of the height, to ensure that your labels are fully visible. | |
| A concentric pie chart. Supply two or more data series. | |
সব ধরনের | Negative numbers in data cause "blank" slices. | cht=pc |
Series Colors chco
You can specify the colors of all values, each value, or some values using the chco
parameter.
বাক্য গঠন
chco=<slice_1>|<slice_2>|<slice_n>,<series_color_1>,...,<series_color_n>
- < রঙ >
- Slice colors in RRGGBB hexadecimal format . Specify a single series color and all slices in that series will be colored in gradations of that color from darkest (first data member) to lightest (last data member). Specify two or more colors delimited by a | to describe individual slice colors. When you have multiple series (that is, a chart with concentric rings), you can specify values for different series by separating values by a comma. When fewer slice/series colors are given than slices/series displayed, then the chart will cycle through from the beginning of the slice list for the series, or the series list for the chart. You cannot specify a distinct gradient for each series in a multi-series chart.
বর্ণনা | উদাহরণ |
---|---|
Specify a single color to have gradations from darkest (first slice) to lightest (last slice). | |
Defining a gradient; here, from yellow to red. |
|
Defining individual slice colors; specify one color per slice. | chd=t:10,20,30 |
This chart has two data series, but specifies color as a single gradient across all slices from yellow to red (BBBB00—BB0000). | chco=BBBB00,BB0000 |
Here's a concentric chart that includes both series colors and individual slice colors. The chart has two concentric data series. In human-readable form, the colors are chco=green|red,blue|yellow. The comma breaks this into two series:
| chd=s:eYY,ORVM |
Pie Chart Labels chl
You can specify labels for individual pie chart slices using the chl
parameter. You can also display a legend with the same or different values, one legend entry per slice.
A Note on String Values: Only URL-safe characters are permitted in label strings. নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। You can find a URL encoder here .
বাক্য গঠন
chl= <label_value>| ... <label_value>
- <label_value >
- A string value to apply to a slice. Labels are applied consecutively to the data points in
chd
. If you have multiple series (for a concentric pie chart, for example), labels are applied to all points in all sequences, in the order specified inchd
. Use a pipe delimiter (|
) between each label. Specify a missing intervening value by using two consecutive pipe characters with no space between them:||
. You do not need to label all slices.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Labels for a three-dimensional pie chart. | |
When specifying the size of your chart with Generally, a two-dimensional pie chart needs to be approximately twice as wide as it is high, and a three-dimensional pie chart needs to be approximately two and a half times wider than it is high, to display labels properly. In the first example, the labels are only partially displayed, because the chart is not wide enough. The second example shows that the chart needs a width of 280 pixels to display the labels in full. (Borders added explicitly to the | |
Pie Chart Rotation chp
By default, the first series is drawn starting at 3:00, continuing clockwise around the chart, but you can specify a custom rotation using the chp
parameter.
বাক্য গঠন
chp=<radians>
- <radians >
- A floating point value describing how many radians to rotate the chart clockwise. One complete turn is 2 π (2 pi—about 6.28) radians.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
To change the orientation of a pie chart, use | |
Here's another example of pie chart rotations. These can be combined with chart shape markers to create some interesting effects . |
সাধারণ বৈশিষ্ট্য
এই পৃষ্ঠার বাকি বৈশিষ্ট্যগুলি স্ট্যান্ডার্ড চার্ট বৈশিষ্ট্য।
চার্ট শিরোনাম chtt
, chts
[ সমস্ত চার্ট ]
আপনি আপনার চার্টের জন্য শিরোনাম পাঠ্য, রঙ এবং ফন্টের আকার নির্দিষ্ট করতে পারেন।
বাক্য গঠন
chtt=<chart_title> chts=<color>,<font_size>,<opt_alignment>
chtt
- চার্ট শিরোনাম নির্দিষ্ট করে।
- < চার্ট_টাইটেল >
- চার্ট দেখানোর জন্য শিরোনাম। এটি কোথায় প্রদর্শিত হবে তা আপনি নির্দিষ্ট করতে পারবেন না, তবে আপনি ঐচ্ছিকভাবে ফন্টের আকার এবং রঙ নির্দিষ্ট করতে পারেন। শূন্যস্থান নির্দেশ করতে একটি + চিহ্ন এবং লাইন বিরতি নির্দেশ করতে একটি পাইপ অক্ষর (
|
) ব্যবহার করুন।
chts
[ ঐচ্ছিক ] - chtt
প্যারামিটারের জন্য রঙ এবং ফন্টের আকার।
- <রঙ >
- শিরোনামের রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । ডিফল্ট রঙ কালো।
- <font_size>
- শিরোনামের হরফের আকার, পয়েন্টে।
- < opt_alignment >
- [ ঐচ্ছিক ] শিরোনামের প্রান্তিককরণ। নিম্নলিখিত কেস-সংবেদনশীল স্ট্রিং মানগুলির মধ্যে একটি বেছে নিন: "l" (বাম), "c" (কেন্দ্রিক) "r" (ডান)। ডিফল্ট হল "c"।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
একটি শিরোনাম সহ একটি চার্ট, ডিফল্ট রঙ এবং ফন্টের আকার ব্যবহার করে৷ যোগ চিহ্ন ( একটি লাইন বিরতি জোর করতে একটি পাইপ অক্ষর ( | chtt=Site+visitors+by+month| |
একটি নীল, ডান-সারিবদ্ধ, 20-পয়েন্ট শিরোনাম সহ একটি চার্ট। | chtt=Site+visitors |
চার্ট লিজেন্ড টেক্সট এবং স্টাইল chdl
, chdlp
, chdls
[ সমস্ত চার্ট ]
কিংবদন্তি হল চার্টের একটি পার্শ্ব বিভাগ যা প্রতিটি সিরিজের একটি ছোট পাঠ্য বিবরণ দেয়। আপনি এই কিংবদন্তির প্রতিটি সিরিজের সাথে যুক্ত পাঠ্যটি নির্দিষ্ট করতে পারেন এবং চার্টে এটি কোথায় প্রদর্শিত হবে তা উল্লেখ করতে পারেন।
আপনার কিংবদন্তির চারপাশে মার্জিন কীভাবে সেট করবেন তা শিখতে chma
দেখুন।
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
বাক্য গঠন
chdl=<data_series_1_label>|...|<data_series_n_label> chdlp=<opt_position>|<opt_label_order> chdls=<color>,<size>
chdl
- কিংবদন্তীতে প্রদর্শনের জন্য প্রতিটি সিরিজের পাঠ্য।
- < ডেটা_সিরিজ_লেবেল >
- কিংবদন্তি এন্ট্রি জন্য পাঠ্য. প্রতিটি লেবেল
chd
অ্যারের সংশ্লিষ্ট সিরিজে প্রযোজ্য। একটি স্থানের জন্য একটি + চিহ্ন ব্যবহার করুন। আপনি যদি এই প্যারামিটারটি নির্দিষ্ট না করেন তবে চার্টটি একটি কিংবদন্তি পাবে না। একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। কিংবদন্তিটি সাধারণত আপনার কিংবদন্তি পাঠ্যটিকে ধরে রাখতে প্রসারিত হবে এবং লেজেন্ডটিকে মিটমাট করার জন্য চার্টের ক্ষেত্রটি সঙ্কুচিত হবে।
chdlp
- [ ঐচ্ছিক ] কিংবদন্তির অবস্থান, এবং কিংবদন্তি এন্ট্রির ক্রম। আপনি < অবস্থান > এবং/অথবা < label_order > নির্দিষ্ট করতে পারেন। আপনি যদি উভয়টি নির্দিষ্ট করেন তবে একটি বার অক্ষর দিয়ে আলাদা করুন। আপনি যদি চান যে chdl
এ খালি কিংবদন্তি এন্ট্রিগুলি কিংবদন্তিতে এড়িয়ে যেতে চান তাহলে আপনি যেকোনো মানতে একটি 's' যোগ করতে পারেন। উদাহরণ: chdlp=bv
, chdlp=r
, chdlp=bv|r
, chdlp=bvs|r
- < opt_position >
- [ ঐচ্ছিক ] লেজেন্ডের অবস্থান সুনির্দিষ্ট করে। কিংবদন্তি এবং চার্ট এলাকা বা ছবির সীমানার মধ্যে অতিরিক্ত প্যাডিং নির্দিষ্ট করতে,
chma
প্যারামিটার ব্যবহার করুন। নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:-
b
- লেজেন্ডের নীচে লেজেন্ড, একটি অনুভূমিক সারিতে লেজেন্ড এন্ট্রি। -
bv
- চার্টের নীচে কিংবদন্তি, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
t
- চার্টের শীর্ষে লেজেন্ড, একটি অনুভূমিক সারিতে কিংবদন্তি এন্ট্রি। -
tv
- চার্টের শীর্ষে লেজেন্ড, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
r
- [ ডিফল্ট ] লেজেন্ড লেজেন্ডের ডানদিকে, একটি উল্লম্ব কলামে লেজেন্ড এন্ট্রি। -
l
- লেজেন্ডের বাম দিকে, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি।
-
- < opt_label_order >
- [ ঐচ্ছিক ] যে ক্রমে লেবেলগুলি কিংবদন্তিতে দেখানো হয়েছে৷ নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:
-
l
- [ উল্লম্ব কিংবদন্তিগুলির জন্য ডিফল্ট ]chdl
দেওয়া ক্রমে লেবেলগুলি প্রদর্শন করুন৷ -
r
-chdl
কে দেওয়া বিপরীত ক্রমে লেবেলগুলি প্রদর্শন করুন। এটি কিংবদন্তি দেখানোর জন্য স্ট্যাক করা বার চার্টে দরকারী
বার প্রদর্শিত একই ক্রমে. -
a
- [ অনুভূমিক কিংবদন্তির জন্য ডিফল্ট ] স্বয়ংক্রিয় ক্রম: মোটামুটি মানে হল দৈর্ঘ্য অনুসারে বাছাই করা, প্রথমে সংক্ষিপ্ততম, যেমন 10 পিক্সেল ব্লকে পরিমাপ করা হয়। যখন দুটি উপাদান একই দৈর্ঘ্যের হয় (10 পিক্সেল ব্লকে বিভক্ত), প্রথমে তালিকাভুক্ত একটি প্রথমে প্রদর্শিত হবে। -
0,1,2...
- কাস্টম লেবেল অর্ডার। এটিchdl
থেকে শূন্য-ভিত্তিক লেবেল সূচীগুলির একটি তালিকা, কমা দ্বারা পৃথক করা হয়েছে।
-
chdls
- [ ঐচ্ছিক ] কিংবদন্তি পাঠ্যের রঙ এবং ফন্টের আকার নির্দিষ্ট করে।
- < রঙ >
- লেজেন্ড টেক্সট রঙ, RRGGBB হেক্সাডেসিমেল ফর্ম্যাটে ।
- < আকার >
- কিংবদন্তি পাঠ্যের বিন্দু আকার।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
কিংবদন্তির দুটি উদাহরণ। আপনার ডেটা সিরিজের মতো একই ক্রমে কিংবদন্তি পাঠ্য নির্দিষ্ট করুন। | chdl=NASDAQ|FTSE100|DOW chdl=First|Second|Third |
প্রথম চার্ট অনুভূমিক কিংবদন্তি এন্ট্রিগুলি প্রদর্শন করে ( | |
এই উদাহরণটি ফন্টের আকার পরিবর্তন দেখায়। | |
চার্ট মার্জিন chma
[ সমস্ত চার্ট ]
আপনি চার্টের মার্জিনের আকার পিক্সেলে নির্দিষ্ট করতে পারেন। মার্জিন নির্দিষ্ট চার্ট আকার ( chs
) থেকে ভিতরের দিকে গণনা করা হয়; মার্জিনের আকার বাড়ানো মোট চার্টের আকার বাড়ায় না, বরং প্রয়োজনে চার্টের ক্ষেত্রটিকে সঙ্কুচিত করে।
চার্টের আকার গণনা করার পরে যা অবশিষ্ট থাকে তা ডিফল্টভাবে মার্জিন হয়। এই ডিফল্ট মান চার্টের ধরন অনুসারে পরিবর্তিত হয়। আপনি যে মার্জিনগুলি নির্দিষ্ট করেছেন তা একটি সর্বনিম্ন মান; যদি চার্টের ক্ষেত্রটি মার্জিনের জন্য জায়গা ছেড়ে দেয়, তবে মার্জিনের আকার যা অবশিষ্ট থাকবে তা হবে; আপনি কোন কিংবদন্তি এবং লেবেলগুলির জন্য প্রয়োজনীয়তার চেয়ে ছোট মার্জিনগুলিকে চাপতে পারবেন না। এখানে একটি চার্টের মৌলিক অংশগুলি দেখানো একটি চিত্র:
চার্ট মার্জিনে অক্ষ লেবেল এবং কিংবদন্তি এলাকা অন্তর্ভুক্ত রয়েছে। কিংবদন্তি এলাকা স্বয়ংক্রিয়ভাবে টেক্সট ফিট করার জন্য স্বয়ংক্রিয়ভাবে আকার পরিবর্তন করে, যদি না আপনি টিপ: একটি বার চার্টে, বারগুলির একটি নির্দিষ্ট আকার (ডিফল্ট) থাকলে, চার্ট এলাকার প্রস্থ কমানো যাবে না। আপনাকে অবশ্যই |
বাক্য গঠন
chma= <left_margin>,<right_margin>,<top_margin>,<bottom_margin>|<opt_legend_width>,<opt_legend_height>
- < left_margin >, < right_margin >, < top_margin >, < bottom_margin >
- চার্ট এলাকার চারপাশে ন্যূনতম মার্জিন আকার, পিক্সেলে। অক্ষের লেবেলগুলিকে চার্টের সীমানাগুলির সাথে বাম্পিং থেকে আটকাতে কিছু প্যাডিং অন্তর্ভুক্ত করতে এই মানটি বাড়ান৷
- < opt_legend_width >, < opt_legend_height >
- [ ঐচ্ছিক ] কিংবদন্তির চারপাশে মার্জিনের প্রস্থ, পিক্সেলে। লেজেন্ডটিকে চার্ট এরিয়া বা ছবির প্রান্তের সাথে বাম্প আপ করা এড়াতে এটি ব্যবহার করুন।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণে, চার্টের প্রতিটি পাশে ন্যূনতম 30 পিক্সেল মার্জিন রয়েছে। চার্ট লিজেন্ডটি 30 পিক্সেলের বেশি প্রশস্ত হওয়ার কারণে, ডান পাশের মার্জিনটি চার্ট লিজেন্ডের প্রস্থে সেট করা হয়েছে এবং অন্যান্য মার্জিন থেকে আলাদা। অক্ষ লেবেলগুলি প্লট এলাকার বাইরে, এবং তাই মার্জিন স্পেসের মধ্যে আঁকা হয়। |
|
কিংবদন্তির চারপাশে একটি মার্জিন যোগ করতে, এই উদাহরণে, কিংবদন্তিটি প্রায় 60 পিক্সেল চওড়া। আপনি যদি |
|
Axis Styles and Labels [ Line, Bar, Google-o-meter, Radar, Scatter ]
You can specify which axes to display on the chart, and give them custom labels and positions, ranges, and styles.
Not all charts show axis lines by default. You can specify exactly which axes your chart should show using the chxt
parameter. Default axis lines do not show numbers; you must specify an axis in the chxt
parameter to show numbers.
You can choose to have your axes display numbers reflecting the data values, or you can specify custom axes. The default is to display numeric values, with values scaled to range from 0—100. However, you can change that range using chxr
to display any range, and you can style the values (for example, to show currency symbols or decimal places) using chxs
.
If you choose to use custom values, for example: "Mon, Tues, Wed", you can use the chxl
parameter. To place these labels in specific locations along the axis, use the chxp
parameter.
Finally, you can use the chxs
and chxtc
parameters to specify color, size, alignment, and other properties of both custom and numeric axis labels.
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
এই বিভাগে নিম্নলিখিত বিষয়গুলি কভার করে:
- Visible Axes (
chxt
) - Which axes to display. - Axis range (
chxr
) - Value range for each axis. - Custom Axis Labels (
chxl
) - Custom values to show on the axis. - Axis label positions (
chxp
) - Placement of custom labels along each axis. - Axis label styles (
chxs
) - Color, size, alignment, and formatting of axis labels. - Axis tick mark styles (
chxtc
) - Length of tick marks for a specific axis.
Visible Axes chxt
Bar, line, radar, and scatter charts show one or two axis lines by default, but these lines do not include values. To display values on your axis lines, or to change which axes are shown, you must use the chxt
parameter. By default, the axis values range from 0-100, unless you scale them explicitly using the chxr
property. To hide all axis lines in a line chart, specify :nda
after the chart type value in the cht
parameter (example: cht= lc:nda
).
By default, the top and bottom axes do not show tick marks by the values, while the left and right axes do show them. You can change this behavior using the chxs
parameter.
বাক্য গঠন
chxt= <axis_1> ,..., <axis_n>
- < axis >
- An axis to show on the chart. Available axes are:
-
x
- Bottom x-axis -
t
- Top x-axis [ Not supported by Google-o-Meter ] -
y
- Left y-axis -
r
- Right y-axis [ Not supported by Google-o-Meter ]
-
You can specify multiple axes of the same type, for example: cht=x,x,y
. This will stack two sets of x-axes along the bottom of the chart. This is useful when adding custom labels along an axis that shows numeric values (see the example below). Axes are drawn from the inside out, so if you have x,x
, the first x refers to the innermost copy, the next x refers to the next outwards copy, and so on.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example shows a line chart with an x-axis, a y-axis, a top axis (t), and a right axis (r). Because no labels are specified, the chart defaults to a range of 0 to 100 for all axes. Note that by default, the top and bottom axes don't show tick marks by the labels. |
|
You can include multiple sets of labels for each axis by including the same value more than once. This example shows two sets of x and two sets of y-axes. This isn't particularly useful when using only the default axis labels, as is shown here. But you can specify custom labels for each copy of each axis, using the chxl parameter. | chxt=x,x,y,y chxt=x,x,y,y |
This example shows a horizontal bar chart with an x-axis, a y-axis, an upper t-axis, and a right r-axis. Axis labels are omitted, so the Chart API displays a range of 0 to 100 for the x-axis and for the t-axis. The range for the y-axis and for the r-axis is determined by the number of bars. In this case, there are five bars, so the Chart API displays a range of 0 to 4. The first label is centered at the base of the first bar, the second label is centered at the base of the second bar, and so on. |
|
You can suppress default axes in a line chart by specifying :nda after the chart type. | cht=lc:nda |
Axis Range chxr
You can specify the range of values that appear on each axis independently, using the chxr parameter. Note that this does not change the scale of the chart elements, only the scale of the axis labels. If you want to make the axis numbers describe the actual data values, set < start_val > and < end_val > to the lower and upper values of your data format range, respectively. See Axis Scaling for more information.
You must make an axis visible using the chxt
parameter if you want to specify its range.
To specify custom axis values, use the chxl
parameter.
বাক্য গঠন
Separate multiple axis label ranges using the pipe character ( |
).
chxr= <axis_index>,<start_val>,<end_val>,<opt_step> |...| <axis_index>,<start_val>,<end_val>,<opt_step>
- <axis_index >
- Which axis to apply the labels to. This is a zero-based index into the axis array specified by
chxt
. For example, the r-axis would be 1 inchxt=x,r,y
. - < start_val >
- A number, defining the low value for this axis.
- < end_val >
- A number, defining the high value for this axis.
- < opt_step >
- [ Optional ] The count step between ticks on the axis. There is no default step value; the step is calculated to try to show a set of nicely spaced labels.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example shows left and right y-axes ( Each axis has a defined range. Because no labels or positions are specified, values are taken from the given range, and are evenly spaced within that range. In the line chart, values are evenly spread along the x-axis. Axis direction is reversed for the r-axis (index |
|
In this example, values are specified for the x-axis. Axis labels are evenly spaced along the axis. A value of five ( | |
Custom Axis Labels chxl
You can specify custom string axis labels on any axis, using the chxl
parameter. You can specify as many labels as you like. If you display an axis (using the chxt
parameter) and do not specify custom labels, the standard, numeric labels will be applied. To specify a custom numeric range, use the chxr
parameter instead.
To set specific locations along the axis for your labels, use the chxp
parameter.
বাক্য গঠন
Specify one parameter set for each axis that you want to label. Separate multiple sets of labels using the pipe character ( |
).
chxl= <axis_index>:|<label_1>|...|<label_n> |...| <axis_index>:|<label_1>|...|<label_n>
- <axis_index >
- Which axis to apply labels to. This is an index into the
chxt
parameter array. For example, if you havechxt=x,x,y,y
then index 0 would be the first x-axis, 1 would be the second x-axis. - <label_1> | ... |< label_n >
- One or more labels to place along this axis. These can be string or number values; strings do not need to be in quotes. label_1 is displayed at the lowest position on the axis, and label_n is displayed at the highest position. Additional labels are spaced evenly between them. Indicate spaces with a + mark. একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। Separate labels with a pipe character. Note: Do not place a pipe after the final label in the
chxl
parameter.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This chart shows how to add custom labels to two axes. Note how the values are evenly spaced, and how the last | chxt=x,y |
This example includes axis labels on the left and right y-axes ( |
|
This example includes axis labels on the left and right y-axes ( This example uses default values for the axis labels on the left y-axis. |
|
If you want to add a generic label to describe a whole axis (for example, to label one axis "cost" and another "student"), use the | chxt=x,x,y,y |
Axis Label Positions chxp
You can specify which axis labels to show, whether using the default labels or custom labels specified using chxl
. If you do not specify exact positions using this parameter, labels will be spaced evenly and at a default step value along the axes. If you do not specify chxl
, then the tick mark labels will be the default values (typically data values, or the bar numbers in bar charts).
বাক্য গঠন
Separate multiple positioning sets using the pipe character ( |
).
chxp= <axis_1_index>,<label_1_position>,...,<label_n_position> |...| <axis_m_index>,<label_1_position>,...,<label_n_position>
- <axis_index >
- The axis for which you are specifying positions. This is an index into the
chxt
parameter array. For example, if you havechxt=x,x,y,y
then index 0 would be the first x-axis, 1 would be the second x-axis, and so on. - < label_1_position >,...,< label_n_position >
- The position of the label along the axis. This is a comma-separated list of numeric values, where each value sets the position of the corresponding label in the
chxl
array: the first entry applies to the first label, and so on. The position is a value in the range for that axis . Note that this will always be 0—100 unless you have specified a custom range usingchxr
. You must have as many positions as you have labels for that axis.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example includes r-axis labels at specified positions on the chart. The label text is specified using the Labels with a specified position of Labels with a specified position of | |
This example demonstrates showing the default label values, but only at specified locations. |
chxt=x,y chxt=x,y chxp not specified |
Axis Label Styles chxs
You can specify the font size, color, and alignment for axis labels, both custom labels and default label values. All labels on the same axis have the same format. If you have multiple copies of an axis, you can format each one differently. You can also specify the format of a label string, for example to show currency symbols or trailing zeroes.
By default, the top and bottom axes do not show tick marks by the values, while the left and right axes do show them.
বাক্য গঠন
Values for multiple axes should be separated using a pipe character ( |
).
chxs= <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color> |...| <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color>
- < axis_index >
- The axis to which this applies. This is a zero-based index into the
chxt
parameter. - < opt_format_string >
- [ Optional ] This is an optional format string that, if used, follows immediately after the axis index number without an intervening comma. It starts with a literal letter N followed by the following values, all optional:
N< preceding_text >*< number_type >< decimal_places >zs< x or y >*< following_text >
এখানে প্রতিটি উপাদানের অর্থ হল:-
<preceding_text>
- Literal text to precede each value. -
*...*
- আক্ষরিক তারকাচিহ্নে মোড়ানো একটি ঐচ্ছিক ব্লক, যেখানে আপনি সংখ্যার জন্য বিন্যাসের বিবরণ নির্দিষ্ট করতে পারেন। নিম্নলিখিত মান সমর্থিত, এবং সব ঐচ্ছিক:-
<number_type>
- সংখ্যার বিন্যাস, সাংখ্যিক মানের জন্য। Choose one of the following:-
f
- [ ডিফল্ট ] ফ্লোটিং পয়েন্ট ফরম্যাট। < decimal_places > মান সহ নির্ভুলতা উল্লেখ করার কথা বিবেচনা করুন। -
p
- শতাংশ বিন্যাস। একটি % চিহ্ন স্বয়ংক্রিয়ভাবে যুক্ত হয়। দ্রষ্টব্য: এই বিন্যাসটি ব্যবহার করার সময়, ডেটা মান 0.0 — 1.0 মানচিত্র থেকে 0 — 100% পর্যন্ত (উদাহরণস্বরূপ, 0.43 43% হিসাবে দেখানো হবে)। -
e
- বৈজ্ঞানিক স্বরলিপি বিন্যাস। -
c< CUR >
- উপযুক্ত মুদ্রা চিহ্নিতকারীর সাথে নির্দিষ্ট মুদ্রায় নম্বর ফর্ম্যাট করুন। একটি তিন-অক্ষরের মুদ্রা কোড দিয়ে< CUR >
প্রতিস্থাপন করুন। উদাহরণ: ইউরোর জন্যcEUR
। আপনি ISO ওয়েব সাইটে কোডগুলির একটি তালিকা খুঁজে পেতে পারেন, যদিও সমস্ত প্রতীক সমর্থিত নয়।
-
-
<decimal_places>
- একটি পূর্ণসংখ্যা নির্দিষ্ট করে যে কত দশমিক স্থান দেখাতে হবে। এই দৈর্ঘ্যের মানটি বৃত্তাকার (ছাঁটা নয়)। ডিফল্ট হল 2। -
z
- পিছনের শূন্য প্রদর্শন করুন। ডিফল্ট না . -
s
- প্রদর্শন গ্রুপ বিভাজক. ডিফল্ট না . -
x
বাy
-নির্দিষ্ট হিসাবে x- বা y- স্থানাঙ্ক থেকে ডেটা প্রদর্শন করুন। x ডেটার অর্থ চার্টের ধরন অনুসারে পরিবর্তিত হয়: এর অর্থ কী তা নির্ধারণ করতে আপনার চার্ট নিয়ে পরীক্ষা করুন। ডিফল্ট হল 'y' ।
-
-
< following_text >
- Literal text to follow each value.
-
- < opt_label_color >
- The color to apply to the axis text (but not axis line), in RRGGBB hexadecimal format . Axis line color is specified separately using opt_axis_color . Default is gray.
- < opt_font_size >
- [ Optional ] specifies the font size in pixels. এই পরামিতি ঐচ্ছিক।
- < opt_alignment >
- [ Optional ] Label alignment. For top or bottom axes, this describes how the label aligns to the tick mark above or below it; for left or right axes, this describes how the aligns inside its bounding box, which touches the axis. Specify one of the following numbers:
-
-1
- Top or bottom : labels are to the right of the ticks; Left or right : labels are left-aligned in their area. Default for r-axis labels. -
0
- Top or bottom : labels are centered on the ticks; Left or right : labels are centered in their area. Default for x- and t-axis labels. -
1
- Top or bottom : labels are to the left of the ticks; Left or right : labels are right-aligned in their area. Default for y-axis labels.
-
- < opt_axis_or_tick >
- [ Optional; not supported in Google-o-meter ] Whether to show tick marks and/or axis lines for this axis. Tick marks and axis lines are only available for innermost axes (for example, they are not supported for the outer of two x-axes). নিম্নলিখিত মানগুলির মধ্যে একটি ব্যবহার করুন:
-
l
(lowercase 'L') - Draw axis line only. -
t
- Draw tick marks only. Tick marks are the little lines next to axis labels. -
lt
- [ Default ] Draw both an axis line and tick marks for all labels. -
_
- (Underscore) Draw neither axis line nor tick marks. If you want to hide an axis line, use this value.
-
- < tick_color >
- [ Optional ; not supported in Google-o-meter ] The tick mark color, in RRGGBB hexadecimal format . Default is gray.
- < opt_axis_color >
- [ Optional ] The color of this axis line, in RRGGBB hexadecimal format . Default is gray.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Font size and color are specified for the second x-axis (Jan, Feb, Mar). | |
Font size, color, and alignment are specified for the right y-axis. Tick marks, but no axis line, are drawn. | |
This chart includes three data sets, and shows three sets of axis labels, one per series. Each set of labels is formatted using a custom formatting string, as described here:
The axis label ranges are set using the | chd=s: |
Axis Tick Mark Styles chxtc
You can specify long tick marks for specific axes. Typically this is used to extend a tick mark across the length of a chart. Use the chxs
parameter to change the tick mark color.
Values for multiple axes should be separated using a pipe character ( |
). Values within a series should be separated by a comma.
বাক্য গঠন
chxtc= <axis_index_1>,<tick_length_1>,...,<tick_length_n> |...| <axis_index_m>,<tick_length_1>,...,<tick_length_n>
- < axis_index >
- The axis to which this applies. This is a zero-based index into the
chxt
parameter. Separate values for different axes using a bar delimiter. - < tick_length_1 >,...,< tick_length_n >
- Length of the tick marks on that axis, in pixels. If a single value is given, it will apply to all values; if more than one value is given, the axis tick marks will cycle through the list of values for that axis. Positive values are drawn outside the chart area and cropped by the chart borders. The maximum positive value is 25. Negative values are drawn inside the chart area and cropped by the chart area borders.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Example of using
| |
This chart demonstrates alternating tick lengths. chxtc specifies two tick length values for the y-axis (5 and 15), and the ticks drawn on the chart alternate between the two values. | chxt=x,y |
ব্যাকগ্রাউন্ড ফিলস chf
[ সমস্ত চার্ট ]
আপনি চার্ট ডেটা এলাকা এবং/অথবা পুরো চার্ট পটভূমির জন্য রঙ এবং শৈলী পূরণ করতে পারেন। ভরাটের প্রকারগুলি সলিড ফিল, স্ট্রাইপড ফিলস এবং গ্রেডিয়েন্ট অন্তর্ভুক্ত করে। আপনি বিভিন্ন এলাকার জন্য বিভিন্ন ফিল নির্দিষ্ট করতে পারেন (উদাহরণস্বরূপ, পুরো চার্ট এলাকা, বা শুধুমাত্র ডেটা এলাকা)। চার্ট এরিয়া ফিল ব্যাকগ্রাউন্ড ফিল ওভাররাইট করে। সমস্ত ফিলগুলি chf
প্যারামিটার ব্যবহার করে নির্দিষ্ট করা হয়েছে, এবং আপনি পাইপ অক্ষর ( | ) এর সাথে মানগুলি আলাদা করে একই চার্টে বিভিন্ন ধরনের ফিল (সলিড, স্ট্রাইপ, গ্রেডিয়েন্ট) মিশ্রিত করতে পারেন। চার্ট এলাকা ওভাররাইট চার্ট ব্যাকগ্রাউন্ড ফিল করে।
সলিড ফিলস chf
[ সমস্ত চার্ট ]
আপনি ব্যাকগ্রাউন্ড এবং/অথবা চার্ট এলাকার জন্য একটি কঠিন ফিল নির্দিষ্ট করতে পারেন, অথবা পুরো চার্টে একটি স্বচ্ছতার মান নির্ধারণ করতে পারেন। আপনি পাইপ অক্ষর ( |
) ব্যবহার করে একাধিক পূরণ নির্দিষ্ট করতে পারেন। (মানচিত্র: শুধুমাত্র পটভূমি)।
বাক্য গঠন
chf=<fill_type>,s,<color>|...
- < fill_type >
- চার্টের অংশটি পূরণ করা হচ্ছে। নিম্নলিখিত মানগুলির মধ্যে একটি নির্দিষ্ট করুন:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। মানচিত্র চার্টের জন্য সমর্থিত নয়। -
a
- পুরো চার্ট (পটভূমি সহ) স্বচ্ছ করুন।< color >
এর প্রথম ছয়টি সংখ্যা উপেক্ষা করা হয় এবং শুধুমাত্র শেষ দুটি (স্বচ্ছতার মান) পুরো চার্টে প্রয়োগ করা হয় এবং সমস্ত পূরণ করা হয়। -
b <index>
- বার সলিড ফিলস (শুধু বার চার্ট)। একটি কঠিন রঙ দিয়ে পূরণ করতে বারের সিরিজ সূচকের সাথে < index > প্রতিস্থাপন করুন। প্রভাবটি একটি বার চার্টেchco
নির্দিষ্ট করার অনুরূপ। উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- s
- একটি কঠিন বা স্বচ্ছতা পূরণ নির্দেশ করে।
- < রঙ >
- ভরাট রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । স্বচ্ছতার জন্য, প্রথম ছয় সংখ্যা উপেক্ষা করা হয়, কিন্তু যেভাবেই হোক অন্তর্ভুক্ত করা আবশ্যক।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি পুরো চার্টে 50% স্বচ্ছতা প্রয়োগ করে (হেক্সাডেসিমেলে 80 হল 128, বা প্রায় 50% স্বচ্ছতা)। চার্টের মাধ্যমে দেখানো টেবিল সেল ব্যাকগ্রাউন্ড লক্ষ্য করুন। | |
Gradient Fills chf
[ Line, Bar, Google-o-meter, Radar, Scatter,Venn ]
You can apply one or more gradient fills to chart areas or backgrounds. Gradient fills are fades from a one color to another color. (Pie, Google-o-meter charts: background only.)
Each gradient fill specifies an angle, and then two or more colors anchored to a specified location. The color varies as it moves from one anchor to another. You must have at least two colors with different < color_centerpoint > values, so that one can fade into the other. Each additional gradient is specified by a < color >,< color_centerpoint > pair.
বাক্য গঠন
chf=<fill_type>,lg,<angle>,<color_1>,<color_centerpoint_1> ,..., <color_n>,<color_centerpoint_n>
- < fill_type >
- The chart area to fill. নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। -
b <index>
- Bar gradient fills (bar charts only). Replace < index > with the series index of the bars to fill with a gradient. উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- এলজি
- Specifies a gradient fill.
- < angle >
- A number specifying the angle of the gradient from 0 (horizontal) to 90 (vertical).
- < রঙ >
- The color of the fill, in RRGGBB hexadecimal format .
- < color_centerpoint >
- Specifies the anchor point for the color. The color will start to fade from this point as it approaches another anchor. The value range is from 0.0 (bottom or left edge) to 1.0 (top or right edge), tilted at the angle specified by < angle >.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Chart area has a horizontal linear gradient, specified with an angle of zero degrees ( The colors are peach ( The chart background is drawn in gray ( | |
Chart area has a diagonal (bottom left to top right) linear gradient, specified with an angle of forty-five degrees ( Peach ( Blue ( The chart background is drawn in gray ( | |
Chart area has a vertical (top to bottom) linear gradient, specified with an angle of ninety degrees ( Blue ( Peach ( The chart background is drawn in gray ( | |
Striped fills chf
[ Line, Bar, Google-o-meter, Radar, Scatter, Venn ]
You can specify a striped background fill for your chart area, or the whole chart. (Pie, Google-o-meter charts: background only.)
বাক্য গঠন
chf= <fill_type>,ls,<angle>,<color_1>,<width_1> ,..., <color_n>,<width_n>
- < fill_type >
- The chart area to fill. নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- Chart area fill -
b <index>
- Bar striped fills (bar charts only). Replace < index > with the series index of the bars to fill with stripes. উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- ls
- Specifies linear stripe fill.
- < angle >
- The angle of all stripes, relative to the y-axis. Use
0
for vertical stripes or90
for horizontal stripes. - < রঙ >
- The color for this stripe, in RRGGBB hexadecimal format . Repeat < color > and < width > for each additional stripe. You must have at least two stripes. Stripes alternate until the chart is filled.
- < width >
- The width of this stripe, from
0
to1
, where1
is the full width of the chart. Stripes are repeated until the chart is filled. Repeat < color > and < width > for each additional stripe. You must have at least two stripes. Stripes alternate until the chart is filled.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
| chf= |
| chf= |
Data Functions chfd
[ All chd
charts ]
You can specify a custom function to run over chart data using muParser function syntax . The data used in the function can come from one of two sources:
- A data series from
chd
- The data is pulled from the specified series inchd
. - A range of values declared in the
chfd
parameter itself - You declare a start, stop, and step value for an arbitrary data range.
It is important to note that in all cases you must assign the output to an existing series in chd
; that series will be overwritten by the function output. The chart is rendered only after all functions have been processes, so if you assign multiple functions to output to the same data series, the functions will be run in the order given, but only the output of the final function will be plotted on the chart. Note that you can chain functions, so that one function can take as input a series that was output by a previous function.
To assign colors or chm
markers to a function line, assign the colors or markers to the function's series index. Note that markers are placed according to the data after it has been manipulated by the function.
বাক্য গঠন
chfd= <output_series_index>,<function_data>,<function_string> |...| <output_series_index>,<function_data>,<function_string>
- < output_series_index >
- Zero-based index of a data series in
chd
to which the function output will be written. Any existing data will be completely overwritten by the function output. If a series is not being used as input for a function, best practice is to assign a single dummy value to that series. - < function_data >
- The variables and data to plot. The data can be from a range that you define, or from one of the
chd
data series. You can specify multiple variables for each function, using a ; (semicolon) delimiter for multiple variables. Note that if you define multiple variables for a single function, and these variables have a different number of points, the function will stop when it reaches the first endpoint. For example, if a function defines both x=1—5 step 1 and y=1—10 step 1, the function will end when it reaches the fifth point.
< variable_name >,< input_series_index >
বা
< variable_name >,< start >,< end >,< step >
- variable_name - An arbitrary string name for the variable. Use this in the function defined by function_string .
- input_series_index - The index of a
chd
data series to use as input data. - start - The numeric start value of a range.
- end - The numeric end value of a range.
- step - The numeric step value from start to end . Can be positive or negative, but cannot be zero.
x,0,100,1
declares a variable namedx
with values 0, 1, 2, ... 100.x,0,100,1;r,0,3.1,.1
declares the samex
variable plus a variable namedr
with values 0, 0.1, 0.2, ..., 3.0, 3.1.x,0
declares a variable named x that uses the data from the firstchd
series. These variables will be used by function_string . They will not be plotted on the graph unless you specify them in function_string . The smaller the step, the smoother your graph. - < function_string >
- Your function, written in the muParser syntax . The function is applied to the variables and data specified in variable_data . You can only reference the variables declared in this local function set, not in another piped set of
chfd
parameters. Summary muParser functions are not supported (min, max sum, avg). IMPORTANT: Remember to use%2B
instead of+
in your functions!
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
A simple sine wave. Some things to notice:
| cht=lc |
This line uses data from the chd parameter. | chd=t:5,10 |
A mix of function and non-function lines. Notice how the colors are specified by the series color parameter Notice the placement of markers on the function output; the data points are calculated from start , end , and step , so if your range is 0—11 step 0.1, point 0 is 0, point 1 is 0.1 and so on, until point 110, which has a value of 11. | chd=t: |
To define a function in two dimensions, use an
| cht=lxy |
The Try clicking these images to open and play with them in the chart playground; you'll get hooked! |
This document describes how to create pie charts using the Chart API.
সুচিপত্র
চার্ট-নির্দিষ্ট বৈশিষ্ট্য
| সাধারণ বৈশিষ্ট্য
|
ওভারভিউ
Pie charts are good for showing simple proportional part-to-whole information. You can create a single series pie chart, where each series is made of multiple slices, or multi-series, concentric charts.
Each series describes one pie, and each data value specifies one slice. When using nested pie charts (described below), use multiple series.
To display the text associated with a slice, you will have to use either pie chart labels or a chart legend . Pie chart labels are text around the chart with lines pointing toward the slice. Legends are text associated by color.
লেবেল | কিংবদন্তি | Labels and Legend |
---|---|---|
chl=January|February|March|April | chdl=January|February|March|April | chl=January|February|March|April |
Values are displayed relative to each other: so a chart with values 1,2,3 will look the same as a chart with values 100,200,300. However, when using text format data, values greater than 100 are trimmed to 100, so you will need to use text format with custom scaling to display slices greater than 100 properly (use the chds
parameter with min/max values of chds=0,< max-slice-size >
).
Negative values display as empty slices of the appropriate size.
চার্টের ধরন
There are three general types of pie charts that you can create: flat, concentric, or 3D. Specify a pie chart with the following syntax:
বাক্য গঠন
cht=<chart_type>
Where < chart_type >
is one of the the following types:
প্যারামিটার | বর্ণনা | উদাহরণ |
---|---|---|
| Two dimensional pie chart. Supply one data series only; subsequent data series are ignored. By default, pie segment colors are interpolated from dark orange to pale yellow. Specify other colors as described in Series Colors . Specify labels with The Google Chart API calculates the circle's radius from the minimum of width and height specified in the chart size ( | |
| A three-dimensional pie chart. Specify data and formatting in the same way as for two dimensional pie charts, above. If you are including labels in a three-dimensional pie chart, you probably need to specify the size of the width to be 2.5 times the size of the height, to ensure that your labels are fully visible. | |
| A concentric pie chart. Supply two or more data series. | |
সব ধরনের | Negative numbers in data cause "blank" slices. | cht=pc |
Series Colors chco
You can specify the colors of all values, each value, or some values using the chco
parameter.
বাক্য গঠন
chco=<slice_1>|<slice_2>|<slice_n>,<series_color_1>,...,<series_color_n>
- < রঙ >
- Slice colors in RRGGBB hexadecimal format . Specify a single series color and all slices in that series will be colored in gradations of that color from darkest (first data member) to lightest (last data member). Specify two or more colors delimited by a | to describe individual slice colors. When you have multiple series (that is, a chart with concentric rings), you can specify values for different series by separating values by a comma. When fewer slice/series colors are given than slices/series displayed, then the chart will cycle through from the beginning of the slice list for the series, or the series list for the chart. You cannot specify a distinct gradient for each series in a multi-series chart.
বর্ণনা | উদাহরণ |
---|---|
Specify a single color to have gradations from darkest (first slice) to lightest (last slice). | |
Defining a gradient; here, from yellow to red. |
|
Defining individual slice colors; specify one color per slice. | chd=t:10,20,30 |
This chart has two data series, but specifies color as a single gradient across all slices from yellow to red (BBBB00—BB0000). | chco=BBBB00,BB0000 |
Here's a concentric chart that includes both series colors and individual slice colors. The chart has two concentric data series. In human-readable form, the colors are chco=green|red,blue|yellow. The comma breaks this into two series:
| chd=s:eYY,ORVM |
Pie Chart Labels chl
You can specify labels for individual pie chart slices using the chl
parameter. You can also display a legend with the same or different values, one legend entry per slice.
A Note on String Values: Only URL-safe characters are permitted in label strings. নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। You can find a URL encoder here .
বাক্য গঠন
chl= <label_value>| ... <label_value>
- <label_value >
- A string value to apply to a slice. Labels are applied consecutively to the data points in
chd
. If you have multiple series (for a concentric pie chart, for example), labels are applied to all points in all sequences, in the order specified inchd
. Use a pipe delimiter (|
) between each label. Specify a missing intervening value by using two consecutive pipe characters with no space between them:||
. You do not need to label all slices.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Labels for a three-dimensional pie chart. | |
When specifying the size of your chart with Generally, a two-dimensional pie chart needs to be approximately twice as wide as it is high, and a three-dimensional pie chart needs to be approximately two and a half times wider than it is high, to display labels properly. In the first example, the labels are only partially displayed, because the chart is not wide enough. The second example shows that the chart needs a width of 280 pixels to display the labels in full. (Borders added explicitly to the | |
Pie Chart Rotation chp
By default, the first series is drawn starting at 3:00, continuing clockwise around the chart, but you can specify a custom rotation using the chp
parameter.
বাক্য গঠন
chp=<radians>
- <radians >
- A floating point value describing how many radians to rotate the chart clockwise. One complete turn is 2 π (2 pi—about 6.28) radians.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
To change the orientation of a pie chart, use | |
Here's another example of pie chart rotations. These can be combined with chart shape markers to create some interesting effects . |
সাধারণ বৈশিষ্ট্য
এই পৃষ্ঠার বাকি বৈশিষ্ট্যগুলি স্ট্যান্ডার্ড চার্ট বৈশিষ্ট্য।
চার্ট শিরোনাম chtt
, chts
[ সমস্ত চার্ট ]
আপনি আপনার চার্টের জন্য শিরোনাম পাঠ্য, রঙ এবং ফন্টের আকার নির্দিষ্ট করতে পারেন।
বাক্য গঠন
chtt=<chart_title> chts=<color>,<font_size>,<opt_alignment>
chtt
- চার্ট শিরোনাম নির্দিষ্ট করে।
- < চার্ট_টাইটেল >
- চার্ট দেখানোর জন্য শিরোনাম। এটি কোথায় প্রদর্শিত হবে তা আপনি নির্দিষ্ট করতে পারবেন না, তবে আপনি ঐচ্ছিকভাবে ফন্টের আকার এবং রঙ নির্দিষ্ট করতে পারেন। শূন্যস্থান নির্দেশ করতে একটি + চিহ্ন এবং লাইন বিরতি নির্দেশ করতে একটি পাইপ অক্ষর (
|
) ব্যবহার করুন।
chts
[ ঐচ্ছিক ] - chtt
প্যারামিটারের জন্য রঙ এবং ফন্টের আকার।
- <রঙ >
- শিরোনামের রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । ডিফল্ট রঙ কালো।
- <font_size>
- শিরোনামের হরফের আকার, পয়েন্টে।
- < opt_alignment >
- [ ঐচ্ছিক ] শিরোনামের প্রান্তিককরণ। নিম্নলিখিত কেস-সংবেদনশীল স্ট্রিং মানগুলির মধ্যে একটি বেছে নিন: "l" (বাম), "c" (কেন্দ্রিক) "r" (ডান)। ডিফল্ট হল "c"।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
একটি শিরোনাম সহ একটি চার্ট, ডিফল্ট রঙ এবং ফন্টের আকার ব্যবহার করে৷ যোগ চিহ্ন ( একটি লাইন বিরতি জোর করতে একটি পাইপ অক্ষর ( | chtt=Site+visitors+by+month| |
একটি নীল, ডান-সারিবদ্ধ, 20-পয়েন্ট শিরোনাম সহ একটি চার্ট। | chtt=Site+visitors |
চার্ট লিজেন্ড টেক্সট এবং স্টাইল chdl
, chdlp
, chdls
[ সমস্ত চার্ট ]
কিংবদন্তি হল চার্টের একটি পার্শ্ব বিভাগ যা প্রতিটি সিরিজের একটি ছোট পাঠ্য বিবরণ দেয়। আপনি এই কিংবদন্তির প্রতিটি সিরিজের সাথে যুক্ত পাঠ্যটি নির্দিষ্ট করতে পারেন এবং চার্টে এটি কোথায় প্রদর্শিত হবে তা উল্লেখ করতে পারেন।
আপনার কিংবদন্তির চারপাশে মার্জিন কীভাবে সেট করবেন তা শিখতে chma
দেখুন।
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
বাক্য গঠন
chdl=<data_series_1_label>|...|<data_series_n_label> chdlp=<opt_position>|<opt_label_order> chdls=<color>,<size>
chdl
- কিংবদন্তীতে প্রদর্শনের জন্য প্রতিটি সিরিজের পাঠ্য।
- < ডেটা_সিরিজ_লেবেল >
- কিংবদন্তি এন্ট্রি জন্য পাঠ্য. প্রতিটি লেবেল
chd
অ্যারের সংশ্লিষ্ট সিরিজে প্রযোজ্য। একটি স্থানের জন্য একটি + চিহ্ন ব্যবহার করুন। আপনি যদি এই প্যারামিটারটি নির্দিষ্ট না করেন তবে চার্টটি একটি কিংবদন্তি পাবে না। একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। কিংবদন্তিটি সাধারণত আপনার কিংবদন্তি পাঠ্যটিকে ধরে রাখতে প্রসারিত হবে এবং লেজেন্ডটিকে মিটমাট করার জন্য চার্টের ক্ষেত্রটি সঙ্কুচিত হবে।
chdlp
- [ ঐচ্ছিক ] কিংবদন্তির অবস্থান, এবং কিংবদন্তি এন্ট্রির ক্রম। আপনি < অবস্থান > এবং/অথবা < label_order > নির্দিষ্ট করতে পারেন। আপনি যদি উভয়টি নির্দিষ্ট করেন তবে একটি বার অক্ষর দিয়ে আলাদা করুন। আপনি যদি চান যে chdl
এ খালি কিংবদন্তি এন্ট্রিগুলি কিংবদন্তিতে এড়িয়ে যেতে চান তাহলে আপনি যেকোনো মানতে একটি 's' যোগ করতে পারেন। উদাহরণ: chdlp=bv
, chdlp=r
, chdlp=bv|r
, chdlp=bvs|r
- < opt_position >
- [ ঐচ্ছিক ] লেজেন্ডের অবস্থান সুনির্দিষ্ট করে। কিংবদন্তি এবং চার্ট এলাকা বা ছবির সীমানার মধ্যে অতিরিক্ত প্যাডিং নির্দিষ্ট করতে,
chma
প্যারামিটার ব্যবহার করুন। নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:-
b
- লেজেন্ডের নীচে লেজেন্ড, একটি অনুভূমিক সারিতে লেজেন্ড এন্ট্রি। -
bv
- চার্টের নীচে কিংবদন্তি, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
t
- চার্টের শীর্ষে লেজেন্ড, একটি অনুভূমিক সারিতে কিংবদন্তি এন্ট্রি। -
tv
- চার্টের শীর্ষে লেজেন্ড, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি। -
r
- [ ডিফল্ট ] লেজেন্ড লেজেন্ডের ডানদিকে, একটি উল্লম্ব কলামে লেজেন্ড এন্ট্রি। -
l
- লেজেন্ডের বাম দিকে, একটি উল্লম্ব কলামে কিংবদন্তি এন্ট্রি।
-
- < opt_label_order >
- [ ঐচ্ছিক ] যে ক্রমে লেবেলগুলি কিংবদন্তিতে দেখানো হয়েছে৷ নিম্নলিখিত মানগুলির মধ্যে একটি চয়ন করুন:
-
l
- [ উল্লম্ব কিংবদন্তিগুলির জন্য ডিফল্ট ]chdl
দেওয়া ক্রমে লেবেলগুলি প্রদর্শন করুন৷ -
r
-chdl
কে দেওয়া বিপরীত ক্রমে লেবেলগুলি প্রদর্শন করুন। এটি কিংবদন্তি দেখানোর জন্য স্ট্যাক করা বার চার্টে দরকারী
বার প্রদর্শিত একই ক্রমে. -
a
- [ অনুভূমিক কিংবদন্তির জন্য ডিফল্ট ] স্বয়ংক্রিয় ক্রম: মোটামুটি মানে হল দৈর্ঘ্য অনুসারে বাছাই করা, প্রথমে সংক্ষিপ্ততম, যেমন 10 পিক্সেল ব্লকে পরিমাপ করা হয়। যখন দুটি উপাদান একই দৈর্ঘ্যের হয় (10 পিক্সেল ব্লকে বিভক্ত), প্রথমে তালিকাভুক্ত একটি প্রথমে প্রদর্শিত হবে। -
0,1,2...
- কাস্টম লেবেল অর্ডার। এটিchdl
থেকে শূন্য-ভিত্তিক লেবেল সূচীগুলির একটি তালিকা, কমা দ্বারা পৃথক করা হয়েছে।
-
chdls
- [ ঐচ্ছিক ] কিংবদন্তি পাঠ্যের রঙ এবং ফন্টের আকার নির্দিষ্ট করে।
- < রঙ >
- লেজেন্ড টেক্সট রঙ, RRGGBB হেক্সাডেসিমেল ফর্ম্যাটে ।
- < আকার >
- কিংবদন্তি পাঠ্যের বিন্দু আকার।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
কিংবদন্তির দুটি উদাহরণ। আপনার ডেটা সিরিজের মতো একই ক্রমে কিংবদন্তি পাঠ্য নির্দিষ্ট করুন। | chdl=NASDAQ|FTSE100|DOW chdl=First|Second|Third |
প্রথম চার্ট অনুভূমিক কিংবদন্তি এন্ট্রিগুলি প্রদর্শন করে ( | |
এই উদাহরণটি ফন্টের আকার পরিবর্তন দেখায়। | |
চার্ট মার্জিন chma
[ সমস্ত চার্ট ]
আপনি চার্টের মার্জিনের আকার পিক্সেলে নির্দিষ্ট করতে পারেন। মার্জিন নির্দিষ্ট চার্ট আকার ( chs
) থেকে ভিতরের দিকে গণনা করা হয়; মার্জিনের আকার বাড়ানো মোট চার্টের আকার বাড়ায় না, বরং প্রয়োজনে চার্টের ক্ষেত্রটিকে সঙ্কুচিত করে।
চার্টের আকার গণনা করার পরে যা অবশিষ্ট থাকে তা ডিফল্টভাবে মার্জিন হয়। এই ডিফল্ট মান চার্টের ধরন অনুসারে পরিবর্তিত হয়। আপনি যে মার্জিনগুলি নির্দিষ্ট করেছেন তা একটি সর্বনিম্ন মান; যদি চার্টের ক্ষেত্রটি মার্জিনের জন্য জায়গা ছেড়ে দেয়, তবে মার্জিনের আকার যা অবশিষ্ট থাকবে তা হবে; আপনি কোন কিংবদন্তি এবং লেবেলগুলির জন্য প্রয়োজনীয়তার চেয়ে ছোট মার্জিনগুলিকে চাপতে পারবেন না। এখানে একটি চার্টের মৌলিক অংশগুলি দেখানো একটি চিত্র:
চার্ট মার্জিনে অক্ষ লেবেল এবং কিংবদন্তি এলাকা অন্তর্ভুক্ত রয়েছে। কিংবদন্তি এলাকা স্বয়ংক্রিয়ভাবে টেক্সট ফিট করার জন্য স্বয়ংক্রিয়ভাবে আকার পরিবর্তন করে, যদি না আপনি টিপ: একটি বার চার্টে, বারগুলির একটি নির্দিষ্ট আকার (ডিফল্ট) থাকলে, চার্ট এলাকার প্রস্থ কমানো যাবে না। আপনাকে অবশ্যই |
বাক্য গঠন
chma= <left_margin>,<right_margin>,<top_margin>,<bottom_margin>|<opt_legend_width>,<opt_legend_height>
- < left_margin >, < right_margin >, < top_margin >, < bottom_margin >
- চার্ট এলাকার চারপাশে ন্যূনতম মার্জিন আকার, পিক্সেলে। অক্ষের লেবেলগুলিকে চার্টের সীমানাগুলির সাথে বাম্পিং থেকে আটকাতে কিছু প্যাডিং অন্তর্ভুক্ত করতে এই মানটি বাড়ান৷
- < opt_legend_width >, < opt_legend_height >
- [ ঐচ্ছিক ] কিংবদন্তির চারপাশে মার্জিনের প্রস্থ, পিক্সেলে। লেজেন্ডটিকে চার্ট এরিয়া বা ছবির প্রান্তের সাথে বাম্প আপ করা এড়াতে এটি ব্যবহার করুন।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণে, চার্টের প্রতিটি পাশে ন্যূনতম 30 পিক্সেল মার্জিন রয়েছে। চার্ট লিজেন্ডটি 30 পিক্সেলের বেশি প্রশস্ত হওয়ার কারণে, ডান পাশের মার্জিনটি চার্ট লিজেন্ডের প্রস্থে সেট করা হয়েছে এবং অন্যান্য মার্জিন থেকে আলাদা। অক্ষ লেবেলগুলি প্লট এলাকার বাইরে, এবং তাই মার্জিন স্পেসের মধ্যে আঁকা হয়। |
|
কিংবদন্তির চারপাশে একটি মার্জিন যোগ করতে, এই উদাহরণে, কিংবদন্তিটি প্রায় 60 পিক্সেল চওড়া। আপনি যদি |
|
Axis Styles and Labels [ Line, Bar, Google-o-meter, Radar, Scatter ]
You can specify which axes to display on the chart, and give them custom labels and positions, ranges, and styles.
Not all charts show axis lines by default. You can specify exactly which axes your chart should show using the chxt
parameter. Default axis lines do not show numbers; you must specify an axis in the chxt
parameter to show numbers.
You can choose to have your axes display numbers reflecting the data values, or you can specify custom axes. The default is to display numeric values, with values scaled to range from 0—100. However, you can change that range using chxr
to display any range, and you can style the values (for example, to show currency symbols or decimal places) using chxs
.
If you choose to use custom values, for example: "Mon, Tues, Wed", you can use the chxl
parameter. To place these labels in specific locations along the axis, use the chxp
parameter.
Finally, you can use the chxs
and chxtc
parameters to specify color, size, alignment, and other properties of both custom and numeric axis labels.
স্ট্রিং মানগুলির উপর একটি নোট: লেবেল স্ট্রিংগুলিতে শুধুমাত্র URL-নিরাপদ অক্ষরগুলি অনুমোদিত৷ নিরাপদে থাকার জন্য, আপনি 0-9a-zA-Z
অক্ষর সেটে নেই এমন অক্ষর সমন্বিত যেকোনো স্ট্রিংকে URL-এনকোড করতে হবে। আপনি Google ভিজ্যুয়ালাইজেশন ডকুমেন্টেশনে একটি URL এনকোডার খুঁজে পেতে পারেন।
এই বিভাগে নিম্নলিখিত বিষয়গুলি কভার করে:
- Visible Axes (
chxt
) - Which axes to display. - Axis range (
chxr
) - Value range for each axis. - Custom Axis Labels (
chxl
) - Custom values to show on the axis. - Axis label positions (
chxp
) - Placement of custom labels along each axis. - Axis label styles (
chxs
) - Color, size, alignment, and formatting of axis labels. - Axis tick mark styles (
chxtc
) - Length of tick marks for a specific axis.
Visible Axes chxt
Bar, line, radar, and scatter charts show one or two axis lines by default, but these lines do not include values. To display values on your axis lines, or to change which axes are shown, you must use the chxt
parameter. By default, the axis values range from 0-100, unless you scale them explicitly using the chxr
property. To hide all axis lines in a line chart, specify :nda
after the chart type value in the cht
parameter (example: cht= lc:nda
).
By default, the top and bottom axes do not show tick marks by the values, while the left and right axes do show them. You can change this behavior using the chxs
parameter.
বাক্য গঠন
chxt= <axis_1> ,..., <axis_n>
- < axis >
- An axis to show on the chart. Available axes are:
-
x
- Bottom x-axis -
t
- Top x-axis [ Not supported by Google-o-Meter ] -
y
- Left y-axis -
r
- Right y-axis [ Not supported by Google-o-Meter ]
-
You can specify multiple axes of the same type, for example: cht=x,x,y
. This will stack two sets of x-axes along the bottom of the chart. This is useful when adding custom labels along an axis that shows numeric values (see the example below). Axes are drawn from the inside out, so if you have x,x
, the first x refers to the innermost copy, the next x refers to the next outwards copy, and so on.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example shows a line chart with an x-axis, a y-axis, a top axis (t), and a right axis (r). Because no labels are specified, the chart defaults to a range of 0 to 100 for all axes. Note that by default, the top and bottom axes don't show tick marks by the labels. |
|
You can include multiple sets of labels for each axis by including the same value more than once. This example shows two sets of x and two sets of y-axes. This isn't particularly useful when using only the default axis labels, as is shown here. But you can specify custom labels for each copy of each axis, using the chxl parameter. | chxt=x,x,y,y chxt=x,x,y,y |
This example shows a horizontal bar chart with an x-axis, a y-axis, an upper t-axis, and a right r-axis. Axis labels are omitted, so the Chart API displays a range of 0 to 100 for the x-axis and for the t-axis. The range for the y-axis and for the r-axis is determined by the number of bars. In this case, there are five bars, so the Chart API displays a range of 0 to 4. The first label is centered at the base of the first bar, the second label is centered at the base of the second bar, and so on. |
|
You can suppress default axes in a line chart by specifying :nda after the chart type. | cht=lc:nda |
Axis Range chxr
You can specify the range of values that appear on each axis independently, using the chxr parameter. Note that this does not change the scale of the chart elements, only the scale of the axis labels. If you want to make the axis numbers describe the actual data values, set < start_val > and < end_val > to the lower and upper values of your data format range, respectively. See Axis Scaling for more information.
You must make an axis visible using the chxt
parameter if you want to specify its range.
To specify custom axis values, use the chxl
parameter.
বাক্য গঠন
Separate multiple axis label ranges using the pipe character ( |
).
chxr= <axis_index>,<start_val>,<end_val>,<opt_step> |...| <axis_index>,<start_val>,<end_val>,<opt_step>
- <axis_index >
- Which axis to apply the labels to. This is a zero-based index into the axis array specified by
chxt
. For example, the r-axis would be 1 inchxt=x,r,y
. - < start_val >
- A number, defining the low value for this axis.
- < end_val >
- A number, defining the high value for this axis.
- < opt_step >
- [ Optional ] The count step between ticks on the axis. There is no default step value; the step is calculated to try to show a set of nicely spaced labels.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example shows left and right y-axes ( Each axis has a defined range. Because no labels or positions are specified, values are taken from the given range, and are evenly spaced within that range. In the line chart, values are evenly spread along the x-axis. Axis direction is reversed for the r-axis (index |
|
In this example, values are specified for the x-axis. Axis labels are evenly spaced along the axis. A value of five ( | |
Custom Axis Labels chxl
You can specify custom string axis labels on any axis, using the chxl
parameter. You can specify as many labels as you like. If you display an axis (using the chxt
parameter) and do not specify custom labels, the standard, numeric labels will be applied. To specify a custom numeric range, use the chxr
parameter instead.
To set specific locations along the axis for your labels, use the chxp
parameter.
বাক্য গঠন
Specify one parameter set for each axis that you want to label. Separate multiple sets of labels using the pipe character ( |
).
chxl= <axis_index>:|<label_1>|...|<label_n> |...| <axis_index>:|<label_1>|...|<label_n>
- <axis_index >
- Which axis to apply labels to. This is an index into the
chxt
parameter array. For example, if you havechxt=x,x,y,y
then index 0 would be the first x-axis, 1 would be the second x-axis. - <label_1> | ... |< label_n >
- One or more labels to place along this axis. These can be string or number values; strings do not need to be in quotes. label_1 is displayed at the lowest position on the axis, and label_n is displayed at the highest position. Additional labels are spaced evenly between them. Indicate spaces with a + mark. একটি লেবেলে একটি লাইন বিরতি নির্দিষ্ট করার কোন উপায় নেই। Separate labels with a pipe character. Note: Do not place a pipe after the final label in the
chxl
parameter.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This chart shows how to add custom labels to two axes. Note how the values are evenly spaced, and how the last | chxt=x,y |
This example includes axis labels on the left and right y-axes ( |
|
This example includes axis labels on the left and right y-axes ( This example uses default values for the axis labels on the left y-axis. |
|
If you want to add a generic label to describe a whole axis (for example, to label one axis "cost" and another "student"), use the | chxt=x,x,y,y |
Axis Label Positions chxp
You can specify which axis labels to show, whether using the default labels or custom labels specified using chxl
. If you do not specify exact positions using this parameter, labels will be spaced evenly and at a default step value along the axes. If you do not specify chxl
, then the tick mark labels will be the default values (typically data values, or the bar numbers in bar charts).
বাক্য গঠন
Separate multiple positioning sets using the pipe character ( |
).
chxp= <axis_1_index>,<label_1_position>,...,<label_n_position> |...| <axis_m_index>,<label_1_position>,...,<label_n_position>
- <axis_index >
- The axis for which you are specifying positions. This is an index into the
chxt
parameter array. For example, if you havechxt=x,x,y,y
then index 0 would be the first x-axis, 1 would be the second x-axis, and so on. - < label_1_position >,...,< label_n_position >
- The position of the label along the axis. This is a comma-separated list of numeric values, where each value sets the position of the corresponding label in the
chxl
array: the first entry applies to the first label, and so on. The position is a value in the range for that axis . Note that this will always be 0—100 unless you have specified a custom range usingchxr
. You must have as many positions as you have labels for that axis.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
This example includes r-axis labels at specified positions on the chart. The label text is specified using the Labels with a specified position of Labels with a specified position of | |
This example demonstrates showing the default label values, but only at specified locations. |
chxt=x,y chxt=x,y chxp not specified |
Axis Label Styles chxs
You can specify the font size, color, and alignment for axis labels, both custom labels and default label values. All labels on the same axis have the same format. If you have multiple copies of an axis, you can format each one differently. You can also specify the format of a label string, for example to show currency symbols or trailing zeroes.
By default, the top and bottom axes do not show tick marks by the values, while the left and right axes do show them.
বাক্য গঠন
Values for multiple axes should be separated using a pipe character ( |
).
chxs= <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color> |...| <axis_index><opt_format_string>,<opt_label_color>,<opt_font_size>,<opt_alignment>,<opt_axis_or_tick>,<opt_tick_color>,<opt_axis_color>
- < axis_index >
- The axis to which this applies. This is a zero-based index into the
chxt
parameter. - < opt_format_string >
- [ Optional ] This is an optional format string that, if used, follows immediately after the axis index number without an intervening comma. It starts with a literal letter N followed by the following values, all optional:
N< preceding_text >*< number_type >< decimal_places >zs< x or y >*< following_text >
এখানে প্রতিটি উপাদানের অর্থ হল:-
<preceding_text>
- Literal text to precede each value. -
*...*
- আক্ষরিক তারকাচিহ্নে মোড়ানো একটি ঐচ্ছিক ব্লক, যেখানে আপনি সংখ্যার জন্য বিন্যাসের বিবরণ নির্দিষ্ট করতে পারেন। নিম্নলিখিত মান সমর্থিত, এবং সব ঐচ্ছিক:-
<number_type>
- সংখ্যার বিন্যাস, সাংখ্যিক মানের জন্য। Choose one of the following:-
f
- [ ডিফল্ট ] ফ্লোটিং পয়েন্ট ফরম্যাট। < decimal_places > মান সহ নির্ভুলতা উল্লেখ করার কথা বিবেচনা করুন। -
p
- শতাংশ বিন্যাস। একটি % চিহ্ন স্বয়ংক্রিয়ভাবে যুক্ত হয়। দ্রষ্টব্য: এই বিন্যাসটি ব্যবহার করার সময়, ডেটা মান 0.0 — 1.0 মানচিত্র থেকে 0 — 100% পর্যন্ত (উদাহরণস্বরূপ, 0.43 43% হিসাবে দেখানো হবে)। -
e
- বৈজ্ঞানিক স্বরলিপি বিন্যাস। -
c< CUR >
- উপযুক্ত মুদ্রা চিহ্নিতকারীর সাথে নির্দিষ্ট মুদ্রায় নম্বর ফর্ম্যাট করুন। একটি তিন-অক্ষরের মুদ্রা কোড দিয়ে< CUR >
প্রতিস্থাপন করুন। উদাহরণ: ইউরোর জন্যcEUR
। আপনি ISO ওয়েব সাইটে কোডগুলির একটি তালিকা খুঁজে পেতে পারেন, যদিও সমস্ত প্রতীক সমর্থিত নয়।
-
-
<decimal_places>
- একটি পূর্ণসংখ্যা নির্দিষ্ট করে যে কত দশমিক স্থান দেখাতে হবে। এই দৈর্ঘ্যের মানটি বৃত্তাকার (ছাঁটা নয়)। ডিফল্ট হল 2। -
z
- পিছনের শূন্য প্রদর্শন করুন। ডিফল্ট না . -
s
- প্রদর্শন গ্রুপ বিভাজক. ডিফল্ট না . -
x
বাy
-নির্দিষ্ট হিসাবে x- বা y- স্থানাঙ্ক থেকে ডেটা প্রদর্শন করুন। x ডেটার অর্থ চার্টের ধরন অনুসারে পরিবর্তিত হয়: এর অর্থ কী তা নির্ধারণ করতে আপনার চার্ট নিয়ে পরীক্ষা করুন। ডিফল্ট হল 'y' ।
-
-
< following_text >
- Literal text to follow each value.
-
- < opt_label_color >
- The color to apply to the axis text (but not axis line), in RRGGBB hexadecimal format . Axis line color is specified separately using opt_axis_color . Default is gray.
- < opt_font_size >
- [ Optional ] specifies the font size in pixels. এই পরামিতি ঐচ্ছিক।
- < opt_alignment >
- [ Optional ] Label alignment. For top or bottom axes, this describes how the label aligns to the tick mark above or below it; for left or right axes, this describes how the aligns inside its bounding box, which touches the axis. Specify one of the following numbers:
-
-1
- Top or bottom : labels are to the right of the ticks; Left or right : labels are left-aligned in their area. Default for r-axis labels. -
0
- Top or bottom : labels are centered on the ticks; Left or right : labels are centered in their area. Default for x- and t-axis labels. -
1
- Top or bottom : labels are to the left of the ticks; Left or right : labels are right-aligned in their area. Default for y-axis labels.
-
- < opt_axis_or_tick >
- [ Optional; not supported in Google-o-meter ] Whether to show tick marks and/or axis lines for this axis. Tick marks and axis lines are only available for innermost axes (for example, they are not supported for the outer of two x-axes). নিম্নলিখিত মানগুলির মধ্যে একটি ব্যবহার করুন:
-
l
(lowercase 'L') - Draw axis line only. -
t
- Draw tick marks only. Tick marks are the little lines next to axis labels. -
lt
- [ Default ] Draw both an axis line and tick marks for all labels. -
_
- (Underscore) Draw neither axis line nor tick marks. If you want to hide an axis line, use this value.
-
- < tick_color >
- [ Optional ; not supported in Google-o-meter ] The tick mark color, in RRGGBB hexadecimal format . Default is gray.
- < opt_axis_color >
- [ Optional ] The color of this axis line, in RRGGBB hexadecimal format . Default is gray.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Font size and color are specified for the second x-axis (Jan, Feb, Mar). | |
Font size, color, and alignment are specified for the right y-axis. Tick marks, but no axis line, are drawn. | |
This chart includes three data sets, and shows three sets of axis labels, one per series. Each set of labels is formatted using a custom formatting string, as described here:
The axis label ranges are set using the | chd=s: |
Axis Tick Mark Styles chxtc
You can specify long tick marks for specific axes. Typically this is used to extend a tick mark across the length of a chart. Use the chxs
parameter to change the tick mark color.
Values for multiple axes should be separated using a pipe character ( |
). Values within a series should be separated by a comma.
বাক্য গঠন
chxtc= <axis_index_1>,<tick_length_1>,...,<tick_length_n> |...| <axis_index_m>,<tick_length_1>,...,<tick_length_n>
- < axis_index >
- The axis to which this applies. This is a zero-based index into the
chxt
parameter. Separate values for different axes using a bar delimiter. - < tick_length_1 >,...,< tick_length_n >
- Length of the tick marks on that axis, in pixels. If a single value is given, it will apply to all values; if more than one value is given, the axis tick marks will cycle through the list of values for that axis. Positive values are drawn outside the chart area and cropped by the chart borders. The maximum positive value is 25. Negative values are drawn inside the chart area and cropped by the chart area borders.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Example of using
| |
This chart demonstrates alternating tick lengths. chxtc specifies two tick length values for the y-axis (5 and 15), and the ticks drawn on the chart alternate between the two values. | chxt=x,y |
ব্যাকগ্রাউন্ড ফিলস chf
[ সমস্ত চার্ট ]
আপনি চার্ট ডেটা এলাকা এবং/অথবা পুরো চার্ট পটভূমির জন্য রঙ এবং শৈলী পূরণ করতে পারেন। ভরাটের প্রকারগুলি সলিড ফিল, স্ট্রাইপড ফিলস এবং গ্রেডিয়েন্ট অন্তর্ভুক্ত করে। আপনি বিভিন্ন এলাকার জন্য বিভিন্ন ফিল নির্দিষ্ট করতে পারেন (উদাহরণস্বরূপ, পুরো চার্ট এলাকা, বা শুধুমাত্র ডেটা এলাকা)। চার্ট এরিয়া ফিল ব্যাকগ্রাউন্ড ফিল ওভাররাইট করে। সমস্ত ফিলগুলি chf
প্যারামিটার ব্যবহার করে নির্দিষ্ট করা হয়েছে, এবং আপনি পাইপ অক্ষর ( | ) এর সাথে মানগুলি আলাদা করে একই চার্টে বিভিন্ন ধরনের ফিল (সলিড, স্ট্রাইপ, গ্রেডিয়েন্ট) মিশ্রিত করতে পারেন। চার্ট এলাকা ওভাররাইট চার্ট ব্যাকগ্রাউন্ড ফিল করে।
সলিড ফিলস chf
[ সমস্ত চার্ট ]
আপনি ব্যাকগ্রাউন্ড এবং/অথবা চার্ট এলাকার জন্য একটি কঠিন ফিল নির্দিষ্ট করতে পারেন, অথবা পুরো চার্টে একটি স্বচ্ছতার মান নির্ধারণ করতে পারেন। আপনি পাইপ অক্ষর ( |
) ব্যবহার করে একাধিক পূরণ নির্দিষ্ট করতে পারেন। (মানচিত্র: শুধুমাত্র পটভূমি)।
বাক্য গঠন
chf=<fill_type>,s,<color>|...
- < fill_type >
- চার্টের অংশটি পূরণ করা হচ্ছে। নিম্নলিখিত মানগুলির মধ্যে একটি নির্দিষ্ট করুন:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। মানচিত্র চার্টের জন্য সমর্থিত নয়। -
a
- পুরো চার্ট (পটভূমি সহ) স্বচ্ছ করুন।< color >
এর প্রথম ছয়টি সংখ্যা উপেক্ষা করা হয় এবং শুধুমাত্র শেষ দুটি (স্বচ্ছতার মান) পুরো চার্টে প্রয়োগ করা হয় এবং সমস্ত পূরণ করা হয়। -
b <index>
- বার সলিড ফিলস (শুধু বার চার্ট)। একটি কঠিন রঙ দিয়ে পূরণ করতে বারের সিরিজ সূচকের সাথে < index > প্রতিস্থাপন করুন। প্রভাবটি একটি বার চার্টেchco
নির্দিষ্ট করার অনুরূপ। উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- s
- একটি কঠিন বা স্বচ্ছতা পূরণ নির্দেশ করে।
- < রঙ >
- ভরাট রঙ, RRGGBB হেক্সাডেসিমেল বিন্যাসে । স্বচ্ছতার জন্য, প্রথম ছয় সংখ্যা উপেক্ষা করা হয়, কিন্তু যেভাবেই হোক অন্তর্ভুক্ত করা আবশ্যক।
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি ফ্যাকাশে ধূসর ( | |
এই উদাহরণটি পুরো চার্টে 50% স্বচ্ছতা প্রয়োগ করে (হেক্সাডেসিমেলে 80 হল 128, বা প্রায় 50% স্বচ্ছতা)। চার্টের মাধ্যমে দেখানো টেবিল সেল ব্যাকগ্রাউন্ড লক্ষ্য করুন। | |
Gradient Fills chf
[ Line, Bar, Google-o-meter, Radar, Scatter,Venn ]
You can apply one or more gradient fills to chart areas or backgrounds. Gradient fills are fades from a one color to another color. (Pie, Google-o-meter charts: background only.)
Each gradient fill specifies an angle, and then two or more colors anchored to a specified location. The color varies as it moves from one anchor to another. You must have at least two colors with different < color_centerpoint > values, so that one can fade into the other. Each additional gradient is specified by a < color >,< color_centerpoint > pair.
বাক্য গঠন
chf=<fill_type>,lg,<angle>,<color_1>,<color_centerpoint_1> ,..., <color_n>,<color_centerpoint_n>
- < fill_type >
- The chart area to fill. নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- চার্ট এলাকা পূরণ। -
b <index>
- Bar gradient fills (bar charts only). Replace < index > with the series index of the bars to fill with a gradient. উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- এলজি
- Specifies a gradient fill.
- < angle >
- A number specifying the angle of the gradient from 0 (horizontal) to 90 (vertical).
- < রঙ >
- The color of the fill, in RRGGBB hexadecimal format .
- < color_centerpoint >
- Specifies the anchor point for the color. The color will start to fade from this point as it approaches another anchor. The value range is from 0.0 (bottom or left edge) to 1.0 (top or right edge), tilted at the angle specified by < angle >.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
Chart area has a horizontal linear gradient, specified with an angle of zero degrees ( The colors are peach ( The chart background is drawn in gray ( | |
Chart area has a diagonal (bottom left to top right) linear gradient, specified with an angle of forty-five degrees ( Peach ( Blue ( The chart background is drawn in gray ( | |
Chart area has a vertical (top to bottom) linear gradient, specified with an angle of ninety degrees ( Blue ( Peach ( The chart background is drawn in gray ( | |
Striped fills chf
[ Line, Bar, Google-o-meter, Radar, Scatter, Venn ]
You can specify a striped background fill for your chart area, or the whole chart. (Pie, Google-o-meter charts: background only.)
বাক্য গঠন
chf= <fill_type>,ls,<angle>,<color_1>,<width_1> ,..., <color_n>,<width_n>
- < fill_type >
- The chart area to fill. নিম্নলিখিত এক:
-
bg
- ব্যাকগ্রাউন্ড ফিল -
c
- Chart area fill -
b <index>
- Bar striped fills (bar charts only). Replace < index > with the series index of the bars to fill with stripes. উদাহরণের জন্য বার চার্ট সিরিজের রং দেখুন।
-
- ls
- Specifies linear stripe fill.
- < angle >
- The angle of all stripes, relative to the y-axis. Use
0
for vertical stripes or90
for horizontal stripes. - < রঙ >
- The color for this stripe, in RRGGBB hexadecimal format . Repeat < color > and < width > for each additional stripe. You must have at least two stripes. Stripes alternate until the chart is filled.
- < width >
- The width of this stripe, from
0
to1
, where1
is the full width of the chart. Stripes are repeated until the chart is filled. Repeat < color > and < width > for each additional stripe. You must have at least two stripes. Stripes alternate until the chart is filled.
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
| chf= |
| chf= |
Data Functions chfd
[ All chd
charts ]
You can specify a custom function to run over chart data using muParser function syntax . The data used in the function can come from one of two sources:
- A data series from
chd
- The data is pulled from the specified series inchd
. - A range of values declared in the
chfd
parameter itself - You declare a start, stop, and step value for an arbitrary data range.
It is important to note that in all cases you must assign the output to an existing series in chd
; that series will be overwritten by the function output. The chart is rendered only after all functions have been processes, so if you assign multiple functions to output to the same data series, the functions will be run in the order given, but only the output of the final function will be plotted on the chart. Note that you can chain functions, so that one function can take as input a series that was output by a previous function.
To assign colors or chm
markers to a function line, assign the colors or markers to the function's series index. Note that markers are placed according to the data after it has been manipulated by the function.
বাক্য গঠন
chfd= <output_series_index>,<function_data>,<function_string> |...| <output_series_index>,<function_data>,<function_string>
- < output_series_index >
- Zero-based index of a data series in
chd
to which the function output will be written. Any existing data will be completely overwritten by the function output. If a series is not being used as input for a function, best practice is to assign a single dummy value to that series. - < function_data >
- The variables and data to plot. The data can be from a range that you define, or from one of the
chd
data series. You can specify multiple variables for each function, using a ; (semicolon) delimiter for multiple variables. Note that if you define multiple variables for a single function, and these variables have a different number of points, the function will stop when it reaches the first endpoint. For example, if a function defines both x=1—5 step 1 and y=1—10 step 1, the function will end when it reaches the fifth point.
< variable_name >,< input_series_index >
বা
< variable_name >,< start >,< end >,< step >
- variable_name - An arbitrary string name for the variable. Use this in the function defined by function_string .
- input_series_index - The index of a
chd
data series to use as input data. - start - The numeric start value of a range.
- end - The numeric end value of a range.
- step - The numeric step value from start to end . Can be positive or negative, but cannot be zero.
x,0,100,1
declares a variable namedx
with values 0, 1, 2, ... 100.x,0,100,1;r,0,3.1,.1
declares the samex
variable plus a variable namedr
with values 0, 0.1, 0.2, ..., 3.0, 3.1.x,0
declares a variable named x that uses the data from the firstchd
series. These variables will be used by function_string . They will not be plotted on the graph unless you specify them in function_string . The smaller the step, the smoother your graph. - < function_string >
- Your function, written in the muParser syntax . The function is applied to the variables and data specified in variable_data . You can only reference the variables declared in this local function set, not in another piped set of
chfd
parameters. Summary muParser functions are not supported (min, max sum, avg). IMPORTANT: Remember to use%2B
instead of+
in your functions!
উদাহরণ
বর্ণনা | উদাহরণ |
---|---|
A simple sine wave. Some things to notice:
| cht=lc |
This line uses data from the chd parameter. | chd=t:5,10 |
A mix of function and non-function lines. Notice how the colors are specified by the series color parameter Notice the placement of markers on the function output; the data points are calculated from start , end , and step , so if your range is 0—11 step 0.1, point 0 is 0, point 1 is 0.1 and so on, until point 110, which has a value of 11. | chd=t: |
To define a function in two dimensions, use an
| cht=lxy |
The Try clicking these images to open and play with them in the chart playground; you'll get hooked! |