Skip to content

Commit df85dea

Browse files
committed
fix some CI issues
1 parent 1c13241 commit df85dea

File tree

2 files changed

+25
-24
lines changed

2 files changed

+25
-24
lines changed

examples/basic_charts/src/main.rs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,7 @@ use plotly::{
99
},
1010
layout::{Axis, BarMode, Layout, Legend, TicksDirection, TraceOrder},
1111
sankey::{Line as SankeyLine, Link, Node},
12-
Bar, Plot, Sankey, Scatter, ScatterPolar,
13-
Table,
12+
Bar, Plot, Sankey, Scatter, ScatterPolar, Table,
1413
};
1514
use rand_distr::{Distribution, Normal, Uniform};
1615

@@ -608,13 +607,10 @@ fn basic_sankey_diagram() {
608607
fn table_chart() {
609608
let trace = Table::new(
610609
vec![String::from("col1"), String::from("col2")],
611-
vec![
612-
vec![1, 2],
613-
vec![2, 3],
614-
]
610+
vec![vec![1, 2], vec![2, 3]],
615611
);
616612
let mut plot = Plot::new();
617-
plot.add_trace(table_trace);
613+
plot.add_trace(trace);
618614
plot.show();
619615
}
620616

plotly/src/traces/table.rs

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -27,21 +27,24 @@ where
2727
/// `Visible::LegendOnly`, the trace is not drawn, but can appear as a
2828
/// legend item (provided that the legend itself is visible).
2929
visible: Option<Visible>,
30-
///Specifies the rendered order of the data columns; for example, a value `2` at position `0`,
31-
///means that column index `0` in the data will be rendered as the,
32-
///third column, as columns have an index base of zero.
30+
///Specifies the rendered order of the data columns; for example, a value
31+
/// `2` at position `0`, means that column index `0` in the data will be
32+
/// rendered as the, third column, as columns have an index base of
33+
/// zero.
3334
column_order: Option<Vec<usize>>,
3435
#[serde(rename = "columnwidth")]
35-
///The width of columns expressed as a ratio. Columns fill the available width,
36-
///in proportion of their specified column widths.
36+
///The width of columns expressed as a ratio. Columns fill the available
37+
/// width, in proportion of their specified column widths.
3738
column_width: Option<f64>,
38-
///Header cell values. `values[m][n]` represents the value of the `n`th point in column `m`,,
39-
///therefore the `values[m]` vector length for all columns must be the same (longer vectors,
40-
///will be truncated). Each value must be a finite number or a string.
39+
///Header cell values. `values[m][n]` represents the value of the `n`th
40+
/// point in column `m`,, therefore the `values[m]` vector length for
41+
/// all columns must be the same (longer vectors, will be truncated).
42+
/// Each value must be a finite number or a string.
4143
header: Option<Header<T>>,
42-
///Cell values. `values[m][n]` represents the value of the `n`th point in column `m`,,
43-
///therefore the `values[m]` vector length for all columns must be the same (longer vectors,
44-
///will be truncated). Each value must be a finite number or a string.
44+
///Cell values. `values[m][n]` represents the value of the `n`th point in
45+
/// column `m`,, therefore the `values[m]` vector length for all columns
46+
/// must be the same (longer vectors, will be truncated). Each value
47+
/// must be a finite number or a string.
4548
cells: Option<Cells<N>>,
4649
}
4750

@@ -72,9 +75,10 @@ where
7275
#[serde_with::skip_serializing_none]
7376
#[derive(Serialize, Clone, Debug, FieldSetter)]
7477
pub struct Cells<N> {
75-
///Cell values. `values[m][n]` represents the value of the `n`th point in column `m`,
76-
///therefore the `values[m]` vector length for all columns must be the same (longer vectors,
77-
///will be truncated). Each value must be a finite number or a string
78+
///Cell values. `values[m][n]` represents the value of the `n`th point in
79+
/// column `m`, therefore the `values[m]` vector length for all columns
80+
/// must be the same (longer vectors, will be truncated). Each value
81+
/// must be a finite number or a string
7882
values: Option<Vec<Vec<N>>>,
7983
///Prefix for cell values.
8084
prefix: Option<String>,
@@ -104,9 +108,10 @@ where
104108
#[serde_with::skip_serializing_none]
105109
#[derive(Serialize, Clone, Debug, FieldSetter)]
106110
pub struct Header<T> {
107-
///Header cell values. `values[m][n]` represents the value of the `n`th point in column `m`,
108-
///therefore the `values[m]` vector length for all columns must be the same (longer vectors,
109-
///will be truncated). Each value must be a finite number or a string.
111+
///Header cell values. `values[m][n]` represents the value of the `n`th
112+
/// point in column `m`, therefore the `values[m]` vector length for all
113+
/// columns must be the same (longer vectors, will be truncated). Each
114+
/// value must be a finite number or a string.
110115
values: Option<Vec<T>>,
111116
///Prefix for cell values.
112117
prefix: Option<String>,

0 commit comments

Comments
 (0)