pub struct Legend {
pub position: LegendPosition,
pub overlay: bool,
}Expand description
图例配置(<c:legend>)。
控制 plotArea 之后的图例显示。ChartData.legend 为 None 时不输出
<c:legend> 元素(关闭图例);为 Some(Legend{...}) 时按配置输出。
§与 python-pptx 的对应
- python-pptx
chart.has_legend←→ChartData.legend.is_some(); - python-pptx
chart.legend.position←→Legend.position。
Fields§
§position: LegendPosition图例位置(<c:legendPos val="..."/>)。
overlay: bool是否覆盖绘图区(<c:overlay val="0|1"/>)。
false(默认):不覆盖,绘图区为图例让出空间;true:图例覆盖在绘图区上方。
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Legend
impl RefUnwindSafe for Legend
impl Send for Legend
impl Sync for Legend
impl Unpin for Legend
impl UnsafeUnpin for Legend
impl UnwindSafe for Legend
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more