[][src]Struct plotly_types::traces::treemap::Tiling

pub struct Tiling { /* fields omitted */ }

Implementations

impl Tiling[src]

pub fn packing(&mut self, packing: Packing) -> &mut Self[src]

Determines d3 treemap solver. For more info please refer to https://github.com/d3/d3-hierarchy#treemap-tiling

default: squarify

pub fn squarifyratio(&mut self, squarifyratio: f64) -> &mut Self[src]

When using squarify packing algorithm, according to https://github.com/d3/d3-hierarchy/blob/master/README.md#squarify_ratio this option specifies the desired aspect ratio of the generated rectangles. The ratio must be specified as a number greater than or equal to one. Note that the orientation of the generated rectangles (tall or wide) is not implied by the ratio; for example, a ratio of two will attempt to produce a mixture of rectangles whose width:height ratio is either 2:1 or 1:2. When using squarify, unlike d3 which uses the Golden Ratio i.e. 1.618034, Plotly applies 1 to increase squares in treemap layouts.

default: 1

pub fn flip(&mut self) -> &mut Flip[src]

Determines if the positions obtained from solver are flipped on each axis.

default: ``

pub fn pad(&mut self, pad: f64) -> &mut Self[src]

Sets the inner padding (in px).

default: 3

Trait Implementations

impl Default for Tiling[src]

impl Serialize for Tiling[src]

Auto Trait Implementations

impl RefUnwindSafe for Tiling

impl Send for Tiling

impl Sync for Tiling

impl Unpin for Tiling

impl UnwindSafe for Tiling

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.