跳转到内容

    图表

    图表是一个保存着自身数字的对象。图表面板可以编辑它的类型、数据表(系列和类别)、图例、数值标签、柱宽以及每个色槽的颜色。最后一次编辑 250 ms 后,更改才会应用。Release to shapes 会把图表变成普通形状。

    在哪里找到

    在页面上选中一个图表。图表面板会在左侧面板中打开,并跟随选区。你也可以右键点击图表,选择 更多,然后选择 Chart options…。

    如何更改数字

    1. 选中图表。图表面板打开。
    2. 在 Data 下,点击一个数值单元格并输入数字。
    3. 点击类别名称(第一行)或系列名称(第一列),输入新名称。
    4. 按 + Series 添加一行,或按 + Category 添加一列。
    5. 按名称旁边的小 x,移除那个系列或类别。只有在有 2 个或更多时才会显示。

    如何更改图表类型

    1. 在 Type 下打开列表,选择一种类型。列表显示 “组 · 名称”,共 8 组 75 种类型。

    如何显示图例和数值

    1. 在 Options 下,勾选 Legend 或 Show values。
    2. 对于条形类的类型,设置 Bar width %。

    如何给系列上色

    1. 在 Colours 下,找到色槽所在的行(按类型,可能是一个系列、一个类别或 All marks)。
    2. 在这一行的列表中选择 Auto、Solid 或 Gradient。
    3. 点击颜色标签,打开 Paint Editor 并选择一个颜色。
    4. 选择 Gradient 时,设置起始颜色、结束颜色和以度为单位的角度。

    如何把图表变成形状

    1. 按 Release to shapes。数字不再可以编辑。撤销可以恢复图表。

    选项

    控件 作用 取值 默认值
    type Type 更改图表类型。 下拉框,75 种类型,分组为 Basics、Magnitude、Change over time、Distribution、Part to whole、Relationship、Flow & hierarchy、Spatial 图表当前的类型
    category-name Category name 是类别标签。 文本框 示例
    series-name Series name 是系列标签。 文本框 示例
    value Value 是一个数据值。 文本框。一个数字。不是数字的文字会变成 0。 示例
    remove-category Remove category 移除一列。 图标按钮,需要 2 个或更多类别 无
    remove-series Remove series 移除一行。 图标按钮,需要 2 个或更多系列 无
    add-series + Series 添加一个全为零的 “Series N”。 按钮 无
    add-category + Category 添加一个全为零的 “Cat N”。 按钮 无
    legend Legend 显示图例。 开、关 开
    show-values Show values 在图形上标出数值。 开、关 关
    bar-width Bar width % 设置柱宽。只在 Column、Stacked Column、Bar、Lollipop、Diverging Bar、Pareto、Combo、Box and Whisker、Violin、Range Bar、Stacked Bar、100% Stacked、Waterfall、Ribbon 和 Beeswarm 中显示。 数值框,10 到 100,步长 1 70
    slot-kind Auto / Solid / Gradient 设置色槽的上色方式。 每个色槽一个下拉框 Auto
    slot-colour 色槽的颜色标签打开 Paint Editor(只用于纯色)。 颜色块,#rrggbb 色槽的调色板颜色
    slot-gradient 起始颜色、结束颜色和 Angle in degrees, 0 runs left to right 设置线性渐变。 2 个颜色块和一个数字。角度可以是任意数字。 起始为色槽颜色,结束为 #ffffff,角度为 90
    release Release to shapes 把图表变成普通的可编辑图稿。提示文字是 “Turn this chart into ordinary editable artwork. The numbers are no longer editable afterwards.” 按钮 无

    颜色色槽跟随哪个轴:

    • 按系列:大多数类型。
    • 按类别:pie、donut、gauge、nightingale、waffle、pie of pie、treemap、sunburst、funnel、tree diagram、circle packing、packed bubble。
    • 按节点(先系列,后类别):sankey、chord、arc diagram、edge bundling。
    • 一个色槽 “All marks”:bland-altman、bubble、candlestick、connected scatter、control chart、forest plot、gantt、horizon、pareto、range area、range bar、stem and leaf、upset plot。
    • 没有色槽:bullet、choropleth、contour、data table、flow map、heat map、kagi、KPI indicator、symbol map、ternary、waterfall。

    限制

    • 最多有 32 个颜色色槽。
    • 用自己的配色上色的类型会显示一条说明,而不是色槽:” paints from its own scheme, a scale, a status colour or a map ramp, so a slot here would change nothing.”
    • Release 下方的面板说明是:“Releasing turns the chart into plain shapes. Undo brings the chart back.”
    • 选区不再是图表时,面板会关闭。对于你关闭过面板的图表,在选区移到别处之前,面板不会再为它打开。
    • 撤销或重做之后,面板会重新读取图表,并丢弃尚未发送的编辑。
    • 图表作为一个对象被锁定。取消编组会拒绝它。要得到它的各个部分,请使用 Release to shapes。
    • Type 列表中缺少图表库中有的 5 种类型:Combo Dual Axis、Contour Matrix、Grid Contour、Hierarchy Tree 和 Kpi Callout。

    另请参阅