มอดูล:ChartColors/doc
หน้าตา
| นี่คือหน้าย่อยเอกสารกำกับของ มอดูล:ChartColors ใช้ในการเขียนคำอธิบายวิธีการใช้งาน จัดหมวดหมู่ และเนื้อหาอื่น ๆ ที่ไม่ได้เป็นส่วนหนึ่งของหน้ามอดูลต้นฉบับ |
ถูกใช้โดยแม่แบบ {{ChartColors}}
หากต้องการแปลหรือตรวจสอบการแปลมอดูลเป็นภาษาของคุณ โปรดแก้ไขอย่างระมัดระวังที่ Commons:Data:I18n/ChartColors.tab
ฟังก์ชัน ShowColors
[แก้]| รหัส | ผลลัพธ์ |
|---|---|
{{#invoke:ChartColors|ShowColors|Categ20|5}} | |
{{ChartColors|Categ20|9}} | |
{{#invoke:ChartColors|ShowColors|Categ20|3|-}} | #1f77b4 #ff7f0e #2ca02c |
{{#invoke:ChartColors|ShowColors|Categ20|3|a}} | #1f77b4ff #ff7f0eff #2ca02cff |
{{#invoke:ChartColors|ShowColors|Plotter|5}} | |
{{#invoke:ChartColors|Plotter|20}} | |
ฟังก์ชัน Legends
[แก้]{{#invoke:ChartColors|Legends|Categ20|5|2}}
ผลลัพธ์:
{{div col|colwidth=2}}
{{legend|#1f77b4|}}
{{legend|#ff7f0e|}}
{{legend|#2ca02c|}}
{{legend|#d62728|}}
{{legend|#9467bd|}}
{{div col end}}
{{#invoke:ChartColors|Legends|Categ20|3|1|One|Two|Three}}
ผลลัพธ์:
{{div col|colwidth=1}}
{{legend|#1f77b4|One}}
{{legend|#ff7f0e|Two}}
{{legend|#2ca02c|Three}}
{{div col end}}