Documentation icon คู่มือการใช้งานแม่แบบ[ดู] [แก้] [ประวัติ] [ล้างแคช]

This template displays standard color palettes: Category20 and Plotter. These color palettes can be used for statistical diagrams.

To translate or review the translation of the module to your language, edit carefully Data:I18n/ChartColors.tab.

Syntax แก้

{{ChartColors|color palette|number of colors|show the color number}}

แม่แบบ:ChartPalette

The number of colors must be from 1 to 20 (Categ20) or 26 (Plotter).

Show the color number is an optional parameter, with two values: '-' the color number and 'a' with the degree of transparency (alpha channel) added at the end of the number and always it will be 'ff'. It is only interesting to add the color for the map coloring.

Template data แก้

ด้านล่างนี้คือข้อมูลแม่แบบ เอกสารกำกับสำหรับแม่แบบนี้ซึ่งถูกใช้งานโดยเครื่องมือแก้ไขแบบเห็นภาพและเครื่องมืออื่น ๆ

ข้อมูลแม่แบบสำหรับ ChartColors (ยังไม่มีการตรวจสอบ)

Show colors of two standard palettes

พารามิเตอร์แม่แบบ[แก้ไขข้อมูลแม่แบบ]

พารามิเตอร์คำอธิบายชนิดสถานะ
Palette name1

Name of the palette to use

บรรทัดจำเป็น
Number of colors2

The number of colors to show on the palette, from 1 to 20 (Categ20) or 26 (Plotter)

จำนวนจำเป็น
Show color number3

Write the color number after the box: - (only number) or (with alpha channel)

จำนวนเลือกได้

Examples แก้

Code Result
{{ChartColors|Categ20|10}}                                        
{{ChartColors|Categ20|20}}                                                                                
{{ChartColors|Plotter|20}}                                                                                
{{ChartColors|Categ20|3|-}}     #1f77b4       #ff7f0e       #2ca02c  

See also แก้