Graph Type: Draw Filled Lines takes a Line Width

Graph Type has a Line Width field next to Draw Filled Lines, and
`graph.setType` takes `lineWidth` in points (0.01 to 1000; 3 when the
graph sets none). Filled lines are drawn at that width, and the width is
kept through save and open. A graph stores a width only when it is not
3 pt, and a graph with a width of its own is written to .ai as its art.
`graph.setType` with options that leave the graph as it is records no
undo step.
This commit is contained in:
dotCooCoo
2026-11-15 12:39:45 -08:00
parent 957397e7a1
commit 5412c911cf
40 changed files with 174 additions and 17 deletions
+20
View File
@@ -483,6 +483,10 @@ pub struct GraphSpec {
pub first_column_in_front: bool,
#[serde(skip_serializing_if = "std::ops::Not::not")]
pub filled_lines: bool,
/// Graph Type › Line Width: how wide Draw Filled Lines draws a line, in points. `None` draws
/// [`DEFAULT_FILLED_LINE_WIDTH`]; see [`Self::filled_line_width`].
#[serde(skip_serializing_if = "Option::is_none")]
pub line_width: Option<f64>,
/// Graph Type › Add Drop Shadow (behind columns, bars, lines and pie wedges) and Add Legend Across Top (the
/// legend in rows above the plot instead of a column on its right).
#[serde(skip_serializing_if = "std::ops::Not::not")]
@@ -557,6 +561,21 @@ fn is_zero(n: &usize) -> bool {
*n == 0
}
/// Graph Type › Line Width: the width Draw Filled Lines draws a line at when the graph sets none, and the least and
/// greatest widths a graph takes, in points.
pub const DEFAULT_FILLED_LINE_WIDTH: f64 = 3.0;
pub const MIN_FILLED_LINE_WIDTH: f64 = 0.01;
pub const MAX_FILLED_LINE_WIDTH: f64 = 1000.0;
impl GraphSpec {
/// How wide Draw Filled Lines draws a line, in points: [`Self::line_width`], else [`DEFAULT_FILLED_LINE_WIDTH`]. A
/// width a file gives outside [`MIN_FILLED_LINE_WIDTH`] to [`MAX_FILLED_LINE_WIDTH`], or not finite, draws the
/// default.
pub fn filled_line_width(&self) -> f64 {
self.line_width.filter(|w| (MIN_FILLED_LINE_WIDTH..=MAX_FILLED_LINE_WIDTH).contains(w)).unwrap_or(DEFAULT_FILLED_LINE_WIDTH)
}
}
/// Edge-to-Edge Lines for a graph saved before the option existed: on, as it was drawn then.
fn edge_to_edge_before_the_option() -> bool {
true
@@ -696,6 +715,7 @@ impl Default for GraphSpec {
first_row_in_front: false,
first_column_in_front: false,
filled_lines: false,
line_width: None,
drop_shadow: false,
legend_across_top: false,
pie_legend_in_wedges: false,
+2 -2
View File
@@ -94,8 +94,8 @@ pub use compound_shape::ShapeMode;
pub use corners::LiveCorners;
pub use depth::{MAX_DEPTH, MAX_SYMBOL_NODES};
pub use graph::{
ColumnDesign, ColumnType, Fractions, GraphDesign, GraphKind, GraphSpec, LabelRows, LabelStyles, MAX_GRAPH_CATEGORIES, MAX_GRAPH_SERIES,
PiePosition, PieSort, SeriesPaint, TickLength, ValueAxisSide,
ColumnDesign, ColumnType, DEFAULT_FILLED_LINE_WIDTH, Fractions, GraphDesign, GraphKind, GraphSpec, LabelRows, LabelStyles, MAX_FILLED_LINE_WIDTH,
MAX_GRAPH_CATEGORIES, MAX_GRAPH_SERIES, MIN_FILLED_LINE_WIDTH, PiePosition, PieSort, SeriesPaint, TickLength, ValueAxisSide,
};
pub use hit::{Hit, HitKind};
pub use links::{LinkInfo, PlacementOptions};
+1 -1
View File
@@ -30,7 +30,7 @@ pub fn specs() -> Vec<CommandSpec> {
"Type…",
["Object", "Graph"],
None,
"{id?, type?, seriesIndexes?: [index], columnWidth?: % (1–1000; past 100 columns overlap), clusterWidth?: % (1–1000), legend?: bool, markPoints?: bool, connectPoints?: bool, edgeToEdge?: bool (line graphs: true runs the lines across the whole plot, false puts the points at the centres of their categories), ticks?: n, axisMin?: number|null (null = calculated), axisMax?: number|null, valueAxis?: left|right|both (the bar graphs' value axis stays along the bottom), separateScales?: bool, rightTicks?: n, rightAxisMin?, rightAxisMax?, tickLength?: none|short|full, tickMarks?: n per division, rightTickLength?, rightTickMarks?, categoryTickLength?: none|short|full, categoryTickMarks?: n, ticksBetweenLabels?: bool, prefix?, suffix?, rightPrefix?, rightSuffix?: text around the value axis numbers, firstRowInFront?: bool, firstColumnInFront?: bool (which overlapping columns are drawn on top: the first category over the next within each series, the first series over the others), filledLines?: bool (Draw Filled Lines: connecting lines as 3 pt bands filled with the series colour), dropShadow?: bool (Add Drop Shadow: a translucent black shadow down and right of the columns, bars, lines and pie wedges), legendAcrossTop?: bool (Add Legend Across Top: the legend in rows above the plot), pieLegend?: none|standard|wedges (Legends in Wedges: the series labels inside their wedges), piePosition?: ratio|even|stacked (several pies sized by their totals, at one size (the default), or stacked), pieSort?: all|first|none (wedges largest first in each pie, in the first pie's order, or in data order (the default)); the query lists the pie options for pie graphs} change the graph type and options; with `seriesIndexes`, or (no `id`) with only series selected with Group Selection, `type` goes to those series only and `valueAxis` (left|right; both is refused) puts them on that value axis, while the other options still apply to the whole graph (Combine different graph types: column, stacked column, line and area mix, and so do bar and stacked bar; a series given the graph's type follows the graph again) (axisMin and axisMax together override the calculated value axis: exactly that range in `ticks` divisions, 5 when 0; with the value axis on both sides, separateScales gives the series on the right axis a scale of their own, set the same way with rightTicks, rightAxisMin and rightAxisMax); a value of the wrong type, such as \"10\" for a number or \"true\" for a bool, or a negative count, is refused and the graph stays as it was; a null is read as a key left out, except that a null axis bound goes back to the calculated value; no options → the current ones",
"{id?, type?, seriesIndexes?: [index], columnWidth?: % (1–1000; past 100 columns overlap), clusterWidth?: % (1–1000), legend?: bool, markPoints?: bool, connectPoints?: bool, edgeToEdge?: bool (line graphs: true runs the lines across the whole plot, false puts the points at the centres of their categories), ticks?: n, axisMin?: number|null (null = calculated), axisMax?: number|null, valueAxis?: left|right|both (the bar graphs' value axis stays along the bottom), separateScales?: bool, rightTicks?: n, rightAxisMin?, rightAxisMax?, tickLength?: none|short|full, tickMarks?: n per division, rightTickLength?, rightTickMarks?, categoryTickLength?: none|short|full, categoryTickMarks?: n, ticksBetweenLabels?: bool, prefix?, suffix?, rightPrefix?, rightSuffix?: text around the value axis numbers, firstRowInFront?: bool, firstColumnInFront?: bool (which overlapping columns are drawn on top: the first category over the next within each series, the first series over the others), filledLines?: bool (Draw Filled Lines: connecting lines as bands `lineWidth` wide filled with the series colour), lineWidth?: pt (Line Width of Draw Filled Lines: 0.01–1000; 3), dropShadow?: bool (Add Drop Shadow: a translucent black shadow down and right of the columns, bars, lines and pie wedges), legendAcrossTop?: bool (Add Legend Across Top: the legend in rows above the plot), pieLegend?: none|standard|wedges (Legends in Wedges: the series labels inside their wedges), piePosition?: ratio|even|stacked (several pies sized by their totals, at one size (the default), or stacked), pieSort?: all|first|none (wedges largest first in each pie, in the first pie's order, or in data order (the default)); the query lists the pie options for pie graphs} change the graph type and options; with `seriesIndexes`, or (no `id`) with only series selected with Group Selection, `type` goes to those series only and `valueAxis` (left|right; both is refused) puts them on that value axis, while the other options still apply to the whole graph (Combine different graph types: column, stacked column, line and area mix, and so do bar and stacked bar; a series given the graph's type follows the graph again) (axisMin and axisMax together override the calculated value axis: exactly that range in `ticks` divisions, 5 when 0; with the value axis on both sides, separateScales gives the series on the right axis a scale of their own, set the same way with rightTicks, rightAxisMin and rightAxisMax); a value of the wrong type, such as \"10\" for a number or \"true\" for a bool, or a negative count, is refused and the graph stays as it was; options that leave the graph as it is record no step of history; a null is read as a key left out, except that a null axis bound goes back to the calculated value; no options → the current ones",
has_selection,
set_type
),
+17
View File
@@ -230,6 +230,7 @@ fn query_type_options(spec: &GraphSpec, count: usize, picked: &[usize]) -> Value
"prefix": one_line(&spec.prefix), "suffix": one_line(&spec.suffix), "rightPrefix": one_line(&spec.right_prefix),
"rightSuffix": one_line(&spec.right_suffix), "dropShadow": spec.drop_shadow, "legendAcrossTop": spec.legend_across_top,
"firstRowInFront": spec.first_row_in_front, "firstColumnInFront": spec.first_column_in_front, "filledLines": spec.filled_lines,
"lineWidth": spec.filled_line_width(),
});
// Only the options this graph's types use: overlap order for columns and bars, filled lines for lines.
let kinds: Vec<GraphKind> = (0..count.max(1)).map(|i| spec.series_kind(i)).collect();
@@ -241,6 +242,7 @@ fn query_type_options(spec: &GraphSpec, count: usize, picked: &[usize]) -> Value
}
if !has(&[GraphKind::Line, GraphKind::Scatter, GraphKind::Radar]) {
o.remove("filledLines");
o.remove("lineWidth");
}
}
// Pie graphs: Legend, Position and Sort (their Legend stands for the legend checkbox).
@@ -266,6 +268,7 @@ pub(super) fn set_type(s: &mut Session, p: &Value) -> Result<Value> {
const C: &str = "graph.setType";
let id = target(s, p, C)?;
let mut spec = spec_of(s, id)?;
let stored = spec.clone();
// The series to retype: `seriesIndexes`, else, with no `id`, a selection made only of this graph's series (Group
// Selection). Anything else selected, the graph itself for one, is the whole graph.
let count = spec.rows.iter().map(Vec::len).max().unwrap_or(0).min(vectorcraft_doc::MAX_GRAPH_SERIES);
@@ -311,6 +314,7 @@ pub(super) fn set_type(s: &mut Session, p: &Value) -> Result<Value> {
"firstRowInFront",
"firstColumnInFront",
"filledLines",
"lineWidth",
"pieLegend",
"piePosition",
"pieSort",
@@ -404,6 +408,15 @@ pub(super) fn set_type(s: &mut Session, p: &Value) -> Result<Value> {
spec.first_row_in_front = switch_or(p, "firstRowInFront", spec.first_row_in_front, C)?;
spec.first_column_in_front = switch_or(p, "firstColumnInFront", spec.first_column_in_front, C)?;
spec.filled_lines = switch_or(p, "filledLines", spec.filled_lines, C)?;
if let Some(w) = p.get("lineWidth").filter(|v| !v.is_null()) {
let w = w.as_f64().ok_or_else(|| bad(C, format!("`lineWidth` must be a number, not {w}")))?;
let (min, max) = (vectorcraft_doc::MIN_FILLED_LINE_WIDTH, vectorcraft_doc::MAX_FILLED_LINE_WIDTH);
if !(min..=max).contains(&w) {
return Err(bad(C, format!("`lineWidth` must be from {min} to {max} pt, not {w}")));
}
// The default width is stored as no width.
spec.line_width = (w != vectorcraft_doc::DEFAULT_FILLED_LINE_WIDTH).then_some(w);
}
spec.legend_across_top = switch_or(p, "legendAcrossTop", spec.legend_across_top, C)?;
// After `legend`, which the Graph Type dialog sends too.
if let Some(v) = text_param(p, "pieLegend", C)? {
@@ -418,6 +431,10 @@ pub(super) fn set_type(s: &mut Session, p: &Value) -> Result<Value> {
spec.connect_points = switch_or(p, "connectPoints", spec.connect_points, C)?;
spec.edge_to_edge = switch_or(p, "edgeToEdge", spec.edge_to_edge, C)?;
spec.ticks = count_given(p, "ticks", 100, C)?.unwrap_or(spec.ticks);
// Options that leave the graph as it is record no step of history.
if spec == stored {
return Ok(json!({ "id": id.0 }));
}
let label = format!("{} Graph", spec.kind.label());
s.edit("Graph Type", |d, sel| {
regenerate(d, id, spec)?;
+3 -5
View File
@@ -177,10 +177,11 @@ impl Gen<'_> {
Arc::new(g)
}
/// A series' line joining its data points (Connect Data Points): a 1 pt stroke in the series colour, or with Draw
/// Filled Lines a band FILLED_LINE_WIDTH wide filled with it and outlined in black.
/// Filled Lines a band as wide as the graph's Line Width ([`GraphSpec::filled_line_width`]) filled with it and outlined
/// in black.
pub(super) fn data_line(&mut self, g: &GraphSpec, s: usize, pd: PathData, filled: bool) -> Arc<Node> {
let band = if filled {
vectorcraft_pathops::outline_stroke(&pd, FILLED_LINE_WIDTH, vectorcraft_pathops::Cap::Butt, vectorcraft_pathops::Join::Miter, 4.0)
vectorcraft_pathops::outline_stroke(&pd, g.filled_line_width(), vectorcraft_pathops::Cap::Butt, vectorcraft_pathops::Join::Miter, 4.0)
} else {
PathData::default()
};
@@ -234,9 +235,6 @@ const SHADOW_OFFSET: f64 = 2.0;
pub(super) const SHADOW_OPACITY: f32 = 0.35;
/// Draw Filled Lines: how wide a filled line is.
const FILLED_LINE_WIDTH: f64 = 3.0;
const FILLED_LINE_BUDGET: usize = 20_000;
/// Does graph `g`, with `series` series, draw Filled Lines (up to FILLED_LINE_BUDGET data points)?
+49
View File
@@ -6443,6 +6443,54 @@ fn filled_lines_keep_the_line_colour_and_fall_back_to_thin_lines() {
assert!(series_parts(&s, big, 0)[0].appearance.fill_paint().is_none());
}
/// Line Width sets how wide Draw Filled Lines draws the bands and is kept through save and open. A width outside 0.01
/// to 1000 pt is refused, the same width again records no undo step, and the default 3 pt is stored as no width.
#[test]
fn filled_lines_take_a_line_width() {
let mut s = Session::new();
s.execute("file.new", &json!({"width": 800, "height": 800})).unwrap();
let id = make(&mut s, "line", ",a\nQ1,2\nQ2,2\nQ3,2");
s.execute("graph.setType", &json!({"id": id.0, "filledLines": true})).unwrap();
let height = |s: &Session| series_parts(s, id, 0)[0].geometric_bounds().unwrap().height();
assert!((height(&s) - 3.0).abs() < 1e-6, "3 pt by default: {}", height(&s));
assert_eq!(s.execute("graph.setType", &json!({"id": id.0})).unwrap()["lineWidth"], json!(3.0));
s.execute("graph.setType", &json!({"id": id.0, "lineWidth": 8})).unwrap();
assert!((height(&s) - 8.0).abs() < 1e-6, "{}", height(&s));
assert_eq!(s.execute("graph.setType", &json!({"id": id.0})).unwrap()["lineWidth"], json!(8.0));
let steps = |s: &Session| s.doc().unwrap().history.undo.len();
let before = steps(&s);
for p in [json!({"id": id.0, "lineWidth": 8}), json!({"id": id.0, "lineWidth": 8.0, "filledLines": true}), json!({"id": id.0, "lineWidth": null})]
{
s.execute("graph.setType", &p).unwrap();
assert_eq!(steps(&s), before, "nothing changed: {p}");
}
for w in [json!(0), json!(-2), json!(0.005), json!(1000.5)] {
let e = s.execute("graph.setType", &json!({"id": id.0, "lineWidth": w})).unwrap_err().to_string();
assert!(e.contains(&format!("`lineWidth` must be from 0.01 to 1000 pt, not {}", w.as_f64().unwrap())), "{e}");
assert_eq!((steps(&s), spec(&s, id).line_width), (before, Some(8.0)), "{w}");
}
s.execute("graph.setType", &json!({"id": id.0, "lineWidth": 0.01})).unwrap();
assert_eq!(spec(&s, id).line_width, Some(0.01));
s.execute("graph.setType", &json!({"id": id.0, "lineWidth": 1000})).unwrap();
assert_eq!(spec(&s, id).line_width, Some(1000.0));
s.execute("edit.undo", &json!({})).unwrap();
s.execute("edit.undo", &json!({})).unwrap();
assert_eq!(spec(&s, id).line_width, Some(8.0));
// Kept through save and open.
let dir = vectorcraft_testkit::TempDir::new("graph-line-width");
let path = dir.join("width.vectorcraft");
s.execute("document.save", &json!({"path": path})).unwrap();
s.execute("document.open", &json!({"path": path})).unwrap();
assert_eq!(spec(&s, id).line_width, Some(8.0));
assert!((height(&s) - 8.0).abs() < 1e-6, "{}", height(&s));
// The default width is stored as no width, so the file keeps no `lineWidth`.
s.execute("select.set", &json!({"ids": [id.0]})).unwrap();
s.execute("graph.setType", &json!({"id": id.0, "lineWidth": 3})).unwrap();
assert_eq!(spec(&s, id).line_width, None);
assert!(serde_json::to_value(spec(&s, id)).unwrap().get("lineWidth").is_none());
assert!((height(&s) - 3.0).abs() < 1e-6, "{}", height(&s));
}
#[test]
fn overlapping_columns_keep_clear_of_the_legend_and_options_follow_the_graph_type() {
let mut s = Session::new();
@@ -8029,6 +8077,7 @@ fn graph_commands_refuse_params_of_the_wrong_type() {
("firstRowInFront", json!("yes"), "`firstRowInFront` must be true or false"),
("firstColumnInFront", json!(0), "`firstColumnInFront` must be true or false"),
("filledLines", json!("on"), "`filledLines` must be true or false"),
("lineWidth", json!("4"), "`lineWidth` must be a number, not \"4\""),
("dropShadow", json!(1), "`dropShadow` must be true or false"),
("legendAcrossTop", json!("x"), "`legendAcrossTop` must be true or false"),
("type", json!(5), "`type` must be a string"),
+4 -1
View File
@@ -233,7 +233,8 @@ fn tick(t: TickLength) -> u8 {
}
/// Whether `g`'s settings are ones the records give and the reader keeps: a legend beside or across
/// the top, every series of the graph's type, one value axis on the left, lines not filled, no graph
/// the top, every series of the graph's type, one value axis on the left, lines not filled and no
/// Line Width of their own, no graph
/// designs, label formatting or pie settings, column and cluster widths of 1% to 1000%, and at most
/// [`MAX_TICK_MARKS`] tick marks a division.
fn settings_kept(g: &GraphSpec) -> bool {
@@ -244,6 +245,7 @@ fn settings_kept(g: &GraphSpec) -> bool {
&& !g.separate_scales
&& g.right_series.is_empty()
&& !g.filled_lines
&& g.line_width.is_none()
&& g.series_markers.iter().all(Option::is_none)
&& g.series_columns.iter().all(Option::is_none)
&& g.label_styles == LabelStyles::default()
@@ -514,6 +516,7 @@ pub(crate) mod sample {
cases.extend([
("no legend", with(&|g| g.legend = false)),
("filled lines", with(&|g| (g.kind, g.filled_lines) = (GraphKind::Line, true))),
("a filled line width", with(&|g| (g.kind, g.line_width) = (GraphKind::Line, Some(8.0)))),
("a series of another type", with(&|g| g.series_kinds = vec![None, Some(GraphKind::Line)])),
("a marker design", with(&|g| g.series_markers = vec![Some("Star".into())])),
("a column design", with(&|g| g.series_columns = vec![Some(Default::default())])),
File diff suppressed because one or more lines are too long
+38 -3
View File
@@ -10,8 +10,8 @@
//! without a step of history.
//!
//! Fields: the options `graph.setType {}` returns under the command's names for them, with
//! `legend`, `pieLegend`, `piePosition`, `pieSort`, `firstRowInFront`, `firstColumnInFront` and
//! `filledLines` held for every type, and `type` or `valueAxis` null while the picked series
//! `legend`, `pieLegend`, `piePosition`, `pieSort`, `firstRowInFront`, `firstColumnInFront`,
//! `filledLines` and `lineWidth` held for every type, and `type` or `valueAxis` null while the picked series
//! differ in it (OK then leaves each series as it is); `overrideValues` and `rightOverrideValues` (Override
//! Calculated Values of the left or only value axis and of the right one: while one is on, OK
//! sends `axisMin`, `axisMax` and `ticks`, or `rightAxisMin`, `rightAxisMax` and `rightTicks`); and
@@ -60,6 +60,8 @@ const WIDTHS: RangeInclusive<f64> = 1.0..=1000.0;
/// The divisions it takes for a value axis, and the tick marks it takes per division.
const DIVISIONS: RangeInclusive<f64> = 1.0..=100.0;
const TICK_MARKS: RangeInclusive<f64> = 1.0..=20.0;
/// The Line Width it takes for Draw Filled Lines, in points.
const LINE_WIDTHS: RangeInclusive<f64> = vectorcraft_doc::MIN_FILLED_LINE_WIDTH..=vectorcraft_doc::MAX_FILLED_LINE_WIDTH;
/// The characters it keeps of a prefix or suffix.
const AFFIX_CHARS: usize = 64;
/// The divisions it draws an overridden value axis in while the axis has no count of its own.
@@ -86,7 +88,7 @@ const PIE_SORTS: [(&str, &str); 3] = [("all", "All"), ("first", "First"), ("none
/// The options OK always sends. `valueAxis` is left out while the picked series are on both axes,
/// and the legend and the tick values follow the type and Override Calculated Values.
const SENT: [&str; 24] = [
const SENT: [&str; 25] = [
"type",
"valueAxis",
"separateScales",
@@ -100,6 +102,7 @@ const SENT: [&str; 24] = [
"connectPoints",
"edgeToEdge",
"filledLines",
"lineWidth",
"tickLength",
"tickMarks",
"rightTickLength",
@@ -183,6 +186,7 @@ pub fn open(app: &mut VectorcraftApp) -> Result<Value, String> {
("firstRowInFront", json!(spec.first_row_in_front)),
("firstColumnInFront", json!(spec.first_column_in_front)),
("filledLines", json!(spec.filled_lines)),
("lineWidth", json!(spec.filled_line_width())),
("legend", json!(spec.legend)),
("pieLegend", json!(pie_legend)),
("piePosition", json!(spec.pie_position.id())),
@@ -672,6 +676,11 @@ fn type_options(ui: &mut egui::Ui, d: &mut Dialog, kind: GraphKind) {
check(ui, d, "filledLines", tl!("Draw Filled Lines"), connected);
ui.end_row();
});
// Line Width sets how wide Draw Filled Lines draws the lines.
let shown = number(d, "lineWidth").unwrap_or(vectorcraft_doc::DEFAULT_FILLED_LINE_WIDTH);
ui.add_enabled_ui(connected && d.bool("filledLines"), |ui| {
ranged(ui, d, "lineWidth", &colon(tl!("Line Width")), shown, (LINE_WIDTHS, " pt", 2));
});
}
if pie {
choice(ui, d, "pieLegend", &colon(tl!("Legend")), &PIE_LEGENDS);
@@ -1062,6 +1071,32 @@ mod tests {
assert!(!field(&h, "Column Width:") && !checkbox(&h, "Mark Data Points") && !menu(&h, "Legend:") && h.query_by_label("Options").is_none());
}
/// Line Width next to Draw Filled Lines shows the graph's width, is available only while Draw
/// Filled Lines is on, and OK gives the graph the width typed.
#[test]
fn line_width_goes_with_draw_filled_lines() {
let mut app = app_with_graph("line");
open(&mut app).unwrap();
assert_eq!(number(app.ui.dialog.as_ref().unwrap(), "lineWidth"), Some(vectorcraft_doc::DEFAULT_FILLED_LINE_WIDTH));
let mut h = harness(app);
let dimmed = |h: &Harness| h.get_by_role_and_label(Role::TextInput, "Line Width:").accesskit_node().is_disabled();
assert!(dimmed(&h), "Draw Filled Lines is off");
h.get_by_role_and_label(Role::CheckBox, "Draw Filled Lines").click();
h.run_steps(3);
assert!(!dimmed(&h));
h.check_accessibility();
set(h.state_mut(), "connectPoints", json!(false));
h.run_steps(3);
assert!(dimmed(&h), "no lines to fill");
set(h.state_mut(), "connectPoints", json!(true));
set(h.state_mut(), "lineWidth", json!(6.5));
let app = h.state_mut();
let before = steps(app);
crate::dialogs::confirm(app).unwrap();
assert_eq!((query(app)["filledLines"].clone(), query(app)["lineWidth"].clone()), (json!(true), json!(6.5)));
assert_eq!(steps(app), before + 1, "one step of history");
}
/// The menu at the top lists a page per axis of the type picked, and a second value axis page
/// while the value axis is on both sides.
#[test]
+1
View File
@@ -1395,6 +1395,7 @@ font-technology Variable Променливи
Connect Data Points Свързване на точките от данни
Edge-to-Edge Lines Линии от край до край
Draw Filled Lines Чертане на запълнени линии
Line Width Ширина на линията
Tick Values Стойности на отметките
Override Calculated Values Замяна на изчислените стойности
Divisions Деления
Can't render this file because it is too large.
+1
View File
@@ -3616,6 +3616,7 @@ theme Appearance Izgled
Connect Data Points Poveži tačke podataka
Edge-to-Edge Lines Linije od ivice do ivice
Draw Filled Lines Crtaj ispunjene linije
Line Width Širina linije
Tick Values Vrijednosti crtica
Override Calculated Values Zamijeni izračunate vrijednosti
Divisions Podioci
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -1927,6 +1927,7 @@ digits Malayalam Malaiàlam
Connect Data Points Connecta els punts de dades
Edge-to-Edge Lines Línies de vora a vora
Draw Filled Lines Dibuixa línies emplenades
Line Width Amplada de línia
Tick Values Valors de les marques
Override Calculated Values Substitueix els valors calculats
Divisions Divisions
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -3712,6 +3712,7 @@ theme Appearance Motiv
Connect Data Points Spojit datové body
Edge-to-Edge Lines Čáry od okraje k okraji
Draw Filled Lines Kreslit vyplněné čáry
Line Width Šířka čáry
Tick Values Hodnoty značek
Override Calculated Values Přepsat vypočítané hodnoty
Divisions Dílky
Can't render this file because it is too large.
+1
View File
@@ -4059,6 +4059,7 @@ theme Appearance Udseende
Connect Data Points Forbind datapunkter
Edge-to-Edge Lines Linjer fra kant til kant
Draw Filled Lines Tegn udfyldte linjer
Line Width Linjebredde
Tick Values Afmærkningsværdier
Override Calculated Values Tilsidesæt beregnede værdier
Divisions Inddelinger
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -1438,6 +1438,7 @@ file-filter Templates Vorlagen
Connect Data Points Datenpunkte verbinden
Edge-to-Edge Lines Linien von Kante zu Kante
Draw Filled Lines Gefüllte Linien zeichnen
Line Width Linienbreite
Tick Values Teilstrichwerte
Override Calculated Values Berechnete Werte überschreiben
Divisions Teilungen
Can't render this file because it is too large.
+1
View File
@@ -1370,6 +1370,7 @@ font-technology Variable Μεταβλητές
Connect Data Points Σύνδεση σημείων δεδομένων
Edge-to-Edge Lines Γραμμές από άκρη σε άκρη
Draw Filled Lines Σχεδίαση γεμισμένων γραμμών
Line Width Πλάτος γραμμής
Tick Values Τιμές υποδιαιρέσεων
Override Calculated Values Αντικατάσταση υπολογισμένων τιμών
Divisions Διαιρέσεις
Can't render this file because it is too large.
+1
View File
@@ -1449,6 +1449,7 @@ font-technology Variable Variables
Connect Data Points Conectar puntos de datos
Edge-to-Edge Lines Líneas de borde a borde
Draw Filled Lines Dibujar líneas rellenas
Line Width Ancho de línea
Tick Values Valores de marcas
Override Calculated Values Sustituir valores calculados
Divisions Divisiones
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -3650,6 +3650,7 @@ theme Appearance Ulkoasu
Connect Data Points Yhdistä arvopisteet
Edge-to-Edge Lines Viivat reunasta reunaan
Draw Filled Lines Piirrä täytetyt viivat
Line Width Viivan leveys
Tick Values Asteikon arvot
Override Calculated Values Ohita lasketut arvot
Divisions Jaot
Can't render this file because it contains an unexpected character in line 2 and column 73.
+1
View File
@@ -1443,6 +1443,7 @@ font-technology Variable Variables
Connect Data Points Relier les points de données
Edge-to-Edge Lines Lignes bord à bord
Draw Filled Lines Tracer des lignes pleines
Line Width Épaisseur de ligne
Tick Values Valeurs des graduations
Override Calculated Values Remplacer les valeurs calculées
Divisions Divisions
Can't render this file because it is too large.
+1
View File
@@ -1565,6 +1565,7 @@
Connect Data Points ડેટા પોઇન્ટ જોડો
Edge-to-Edge Lines કિનારીથી કિનારી સુધી રેખાઓ
Draw Filled Lines ભરેલી રેખાઓ દોરો
Line Width રેખાની પહોળાઈ
Tick Values ટિક મૂલ્યો
Override Calculated Values ગણતરી કરેલાં મૂલ્યો બદલો
Divisions વિભાગો
Can't render this file because it contains an unexpected character in line 72 and column 5.
+1
View File
@@ -2142,6 +2142,7 @@ antiAlias Sharp शार्प
Connect Data Points डेटा पॉइंट जोड़ें
Edge-to-Edge Lines किनारे से किनारे तक रेखाएँ
Draw Filled Lines भरी हुई रेखाएँ बनाएँ
Line Width रेखा की चौड़ाई
Tick Values टिक मान
Override Calculated Values परिकलित मानों को बदलें
Divisions विभाजन
Can't render this file because it is too large.
+1
View File
@@ -1801,6 +1801,7 @@ file-filter Templates Sablonok
Connect Data Points Adatpontok összekötése
Edge-to-Edge Lines Széltől szélig érő vonalak
Draw Filled Lines Kitöltött vonalak rajzolása
Line Width Vonalvastagság
Tick Values Osztásértékek
Override Calculated Values Számított értékek felülírása
Divisions Osztások
Can't render this file because it is too large.
+1
View File
@@ -3393,6 +3393,7 @@ theme Appearance Tampilan
Connect Data Points Hubungkan titik data
Edge-to-Edge Lines Garis dari tepi ke tepi
Draw Filled Lines Gambar garis terisi
Line Width Lebar garis
Tick Values Nilai tanda skala
Override Calculated Values Timpa nilai terhitung
Divisions Pembagian
Can't render this file because it contains an unexpected character in line 2473 and column 5.
+1
View File
@@ -1468,6 +1468,7 @@ file-filter Templates Modelli
Connect Data Points Collega punti dati
Edge-to-Edge Lines Linee da bordo a bordo
Draw Filled Lines Disegna linee piene
Line Width Spessore linea
Tick Values Valori delle tacche
Override Calculated Values Sostituisci valori calcolati
Divisions Divisioni
Can't render this file because it is too large.
+1
View File
@@ -3891,6 +3891,7 @@ file-filter Templates テンプレート
Connect Data Points データポイントを線でつなぐ
Edge-to-Edge Lines 端から端までの線
Draw Filled Lines 線を塗りつぶして描く
Line Width 線幅
Tick Values 目盛りの値
Override Calculated Values 計算値を上書き
Divisions 分割数
Can't render this file because it is too large.
+1
View File
@@ -5366,6 +5366,7 @@ theme Appearance იერსახე
Connect Data Points მონაცემთა წერტილების შეერთება
Edge-to-Edge Lines ხაზები კიდიდან კიდემდე
Draw Filled Lines შევსებული ხაზების დახატვა
Line Width ხაზის სიგანე
Tick Values დანაყოფების მნიშვნელობები
Override Calculated Values გამოთვლილი მნიშვნელობების შეცვლა
Divisions დანაყოფები
Can't render this file because it is too large.
+1
View File
@@ -3879,6 +3879,7 @@ file-filter Templates 템플릿
Connect Data Points 데이터 요소 연결
Edge-to-Edge Lines 가장자리 간 선
Draw Filled Lines 채워진 선 그리기
Line Width 선 너비
Tick Values 눈금 값
Override Calculated Values 계산된 값 재정의
Divisions 구간
Can't render this file because it is too large.
+1
View File
@@ -3955,6 +3955,7 @@ theme Appearance Vormgeving
Connect Data Points Gegevenspunten verbinden
Edge-to-Edge Lines Lijnen van rand tot rand
Draw Filled Lines Gevulde lijnen tekenen
Line Width Lijndikte
Tick Values Maatstreepwaarden
Override Calculated Values Berekende waarden negeren
Divisions Verdelingen
Can't render this file because it is too large.
+1
View File
@@ -3591,6 +3591,7 @@ theme Appearance Wygląd
Connect Data Points Połącz punkty danych
Edge-to-Edge Lines Linie od krawędzi do krawędzi
Draw Filled Lines Rysuj wypełnione linie
Line Width Szerokość linii
Tick Values Wartości podziałki
Override Calculated Values Zastąp obliczone wartości
Divisions Podziały
Can't render this file because it is too large.
+1
View File
@@ -5010,6 +5010,7 @@ axis Both Ambos
Connect Data Points Conectar Pontos de Dados
Edge-to-Edge Lines Linhas de Borda a Borda
Draw Filled Lines Desenhar Linhas Preenchidas
Line Width Largura da Linha
Tick Values Valores das Marcas
Override Calculated Values Substituir Valores Calculados
Divisions Divisões
Can't render this file because it is too large.
+1
View File
@@ -1459,6 +1459,7 @@ file-filter Templates Шаблоны
Connect Data Points Соединять точки данных
Edge-to-Edge Lines Линии от края до края
Draw Filled Lines Рисовать заполненные линии
Line Width Ширина линии
Tick Values Значения делений
Override Calculated Values Заменить вычисленные значения
Divisions Деления
Can't render this file because it is too large.
+1
View File
@@ -1406,6 +1406,7 @@ font-technology Variable Variabla
Connect Data Points Förbind datapunkter
Edge-to-Edge Lines Linjer från kant till kant
Draw Filled Lines Rita fyllda linjer
Line Width Linjebredd
Tick Values Skalstrecksvärden
Override Calculated Values Åsidosätt beräknade värden
Divisions Indelningar
Can't render this file because it is too large.
+1
View File
@@ -1374,6 +1374,7 @@ font-technology Variable Değişken
Connect Data Points Veri Noktalarını Bağla
Edge-to-Edge Lines Kenardan Kenara Çizgiler
Draw Filled Lines Dolgulu Çizgiler Çiz
Line Width Çizgi Genişliği
Tick Values Onay İşareti Değerleri
Override Calculated Values Hesaplanan Değerleri Geçersiz Kıl
Divisions Bölümler
Can't render this file because it is too large.
+1
View File
@@ -1462,6 +1462,7 @@ file-filter Templates Шаблони
Connect Data Points З'єднувати точки даних
Edge-to-Edge Lines Лінії від краю до краю
Draw Filled Lines Малювати заповнені лінії
Line Width Ширина лінії
Tick Values Значення поділок
Override Calculated Values Замінити обчислені значення
Divisions Поділки
Can't render this file because it is too large.
+1
View File
@@ -1721,6 +1721,7 @@ file-filter Templates Mẫu
Connect Data Points Nối các điểm dữ liệu
Edge-to-Edge Lines Đường từ mép đến mép
Draw Filled Lines Vẽ đường tô đầy
Line Width Độ rộng đường
Tick Values Giá trị vạch chia
Override Calculated Values Ghi đè giá trị đã tính
Divisions Số khoảng chia
Can't render this file because it contains an unexpected character in line 205 and column 5.
+1
View File
@@ -1397,6 +1397,7 @@ file-filter Templates 模板
Connect Data Points 连接数据点
Edge-to-Edge Lines 边到边线条
Draw Filled Lines 绘制填充线
Line Width 线宽
Tick Values 刻度值
Override Calculated Values 覆盖计算值
Divisions 刻度数
Can't render this file because it is too large.
+1
View File
@@ -1432,6 +1432,7 @@ file-filter Templates 範本
Connect Data Points 連接資料點
Edge-to-Edge Lines 邊到邊線條
Draw Filled Lines 繪製填色線條
Line Width 線寬
Tick Values 刻度值
Override Calculated Values 覆寫計算值
Divisions 刻度數
Can't render this file because it is too large.
File diff suppressed because one or more lines are too long
+9 -2
View File
@@ -1964,6 +1964,12 @@ were. `graph.setType` refuses `` `columnWidth` must be a number, not "50" `` for
`` `type` must be a string `` for `type`, `valueAxis`, the three tick lengths, `prefix`, `suffix`, `rightPrefix`,
`rightSuffix`, `pieLegend`, `piePosition` and `pieSort`; and `` `ticks` must be a number, not "5" `` (or
`` `ticks` must be 0 or more `` for a negative number) for `ticks`, `rightTicks` and the three tick mark counts.
`lineWidth`, the Line Width of Draw Filled Lines in points (3 when the graph sets none), takes a number from 0.01 to
1000 (VectorCraft's own range); `"4"` is refused with `` `lineWidth` must be a number, not "4" ``, and a width below
0.01 or past 1000 with `` `lineWidth` must be from 0.01 to 1000 pt, not 0 ``. The graph stores a width only when it is
not 3, so a graph without one is saved and drawn as before. A graph with a width of its own is written to `.ai` as its
art, without the editable graph records. `graph.setType` with options that leave the graph as it is
records no undo step.
`axisMin`, `axisMax`, `rightAxisMin` and `rightAxisMax` take a number, or null to go back to the value calculated from
the data; any other value is refused with `` `axisMin` must be a number or null, not "10" ``. `graph.setData` and
`graph.create` refuse a `csv` that is not a string, `series` or `categories` that are not lists, and `rows` that are not
@@ -10901,8 +10907,9 @@ A canvas-click dialog also has `preview` (initially on): tentative settings draw
Object › Graph › Type… (`graph.setType` without params) and a double-click on a graph tool open Graph Type (dialog
`graphType`) for the selected graph, or for the series picked in it with Group Selection. Its fields are the options
`graph.setType {}` returns, under the command's names for them. `legend`, `pieLegend`, `piePosition`, `pieSort`,
`firstRowInFront`, `firstColumnInFront` and `filledLines` are held for every type, so a type picked in the dialog shows
the options it uses. `overrideValues` and `rightOverrideValues` are Override Calculated Values of the left (or only)
`firstRowInFront`, `firstColumnInFront`, `filledLines` and `lineWidth` are held for every type, so a type picked in the
dialog shows the options it uses. The Line Width field next to Draw Filled Lines is available only while Draw Filled
Lines is on. `overrideValues` and `rightOverrideValues` are Override Calculated Values of the left (or only)
value axis and of the right one. While one is on, OK sends `axisMin`, `axisMax` and `ticks` (or `rightAxisMin`,
`rightAxisMax` and `rightTicks`), and the dialog fills the ones the graph lacks with the values the axis would be
calculated with for the type, value axis and Separate Scales the dialog shows.
+1 -1
View File
@@ -1209,7 +1209,7 @@ Moved from the ROADMAP's "Shipped so far" on 2026-10-10. Update it when a featur
- **Blend steps of brushed strokes:** the steps interpolate the pen pressure, tilt, bearing and rotation recorded with the Paintbrush, so a Calligraphic, Scatter or Art brush that varies with the pen changes gradually from one key to the next. A key without a recording counts as half pressure, half tilt and 0°, as brushes read it, and angles turn the shorter way round. When the blend starts a key's path at another anchor (an open path run from its end, a closed one turned to another start), the key's recordings, width profile, arrowheads, dashes and a gradient along or across the stroke turn with the path. Different brushes still switch halfway (VectorCraft's own rule; strokes blend their options, as [Blended objects overview](https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blended-objects-overview.html) describes; `crates/doc/src/blend.rs`, `pen_pressure_tilt_and_angles_interpolate_for_brushes`, `stroke_profiles_turn_with_a_key_path_started_elsewhere`, `stroke_gradients_and_dashes_turn_with_a_key_path_started_elsewhere`).
- **Blend steps of spot gradients with process plates:** when the matching stops of two gradients, or of a gradient and a solid, are tints of one spot swatch, each step's stop stays linked to it at a tint between the two and keeps the process inks printed with it, each of C, M, Y and K between the two stops' amounts; a stop or solid without process inks counts as none of each. Gradients with different stop counts keep the inks at every resampled stop. PDF export writes such a step as one DeviceN shading of the spot and process inks. Tints of one spot color blend into tints of it, as [the help page](https://helpx.adobe.com/illustrator/desktop/manage-colors/apply-transparency-and-blending/blended-objects-overview.html) describes; the process-ink interpolation is VectorCraft's own rule (`crates/doc/src/blend.rs`, `blend_gradient_spot_process_plates_interpolate`, `resampled_gradient_spot_process_plates_interpolate`, `blend_gradient_missing_plates_mean_zero`, `blend_solid_to_spot_gradient_does_not_copy_plates`; `crates/pdf/src/tests/output.rs`, `blend_steps_between_spot_gradients_with_process_plates_print_both_inks`).
- **Path editing (#494):** the handles shown are the handles that drag: Direct Selection drags those of a path selected as a whole (as the Pen leaves it), the Anchor Point tool and Pen+Alt no longer grab handles that Show handles when multiple anchors are selected hides, a handle shorter than the tolerance leaves its anchor to be picked, and the anchor tools pick within Selection & Anchor Display › Tolerance. A dragged segment keeps a smooth anchor at either end smooth. With Direct Selection, the Pen, the Curvature and the anchor tools, a path selected as a whole shows all its anchors selected, and the Control bar and the Properties panel offer Convert (corner, smooth) for them too; Remove and Cut wait for anchors direct-selected (#504). A handle drag gathers its snap targets once per drag (it took 21 ms per pointer move on a 20,000-path document, now 1 ms; `vectorcraft-cli perf` measures handle and segment drags on a 5,000-anchor path). Join merges the selected anchor points that lie on one another, as after Average, into one anchor (#1582, fixes #1533), and removes the merged anchors in one pass over the path, so a long run of them no longer moves the anchors after it once per merge (`cmd::path::tests::a_long_run_before_many_other_anchors_merges_in_one_pass`); Object › Path › Average & Join… (`path.averageJoin`, Cmd+Alt+Shift+J, the "Create corner or smooth join" shortcut of [Default keyboard shortcuts](https://helpx.adobe.com/illustrator/using/default-keyboard-shortcuts.html)) moves two open path ends to their midpoint and joins them there, a corner or smooth point as its dialog's Points choice asks, in one undo step.
- **Graphs:** Column, Stacked Column, Bar, Stacked Bar, Line, Area, Scatter, Pie and Radar graph tools with Graph Data and Graph Type. A series starts in greyscale; Group Selection's fill and stroke, the paint, weight, opacity and blend mode of a mark's top visible fill or stroke row after an Appearance command or a graphic style (each given a mark or its series picked with Group Selection), the Eyedropper, Default Fill and Stroke or Swap Fill and Stroke, the paint or stroke weight a stroke weight, gradient or recolor command changes there, a mark's object opacity and blend mode, and the opacity, blend mode, isolation and knockout of a series group picked with Group Selection, are kept separately on the graph and reapplied when its data, type or size changes, and through save, open and undo; a kept gradient takes the same place on each mark's own box. A series that draws Filled Lines bands keeps no stroke paint or weight: its bands are drawn again with their 0.25 pt black outline. Graph Type's Override Calculated Values (both `axisMin` and `axisMax`) uses exactly that value-axis range, split into the tick count (5 when automatic). Line graphs take Edge-to-Edge Lines (off by default: the points sit at the centres of their categories; graphs saved before the option keep their edge-to-edge lines), and radar graphs follow Mark Data Points and Connect Data Points. Blank cells (an empty CSV cell or `null`) are values left out, not zeros: columns, bars and stacked segments skip them, lines and scatter lines break around them and the value axis ignores them, while area, pie and radar draw them as 0; a number in straight quotes is a label, and the data window writes it back quoted. Graph types combine: Graph Type on series picked with Group Selection (or `series` indexes) draws them as their own type, with column, stacked column, line and area mixing on the vertical value axis and bar and stacked bar on the horizontal one; stacked columns take one slot of the cluster, lines draw in front of columns and areas behind. The value axis goes on the left, the right or both sides (column, stacked column, line, area and scatter graphs; bar graphs keep theirs along the bottom), and Separate Scales gives the series assigned to the right axis a scale of their own with its own tick values. Each value axis takes tick marks of no, short or full (across the plot) length and a count per division, and a prefix and suffix for its numbers; the category axis takes tick marks too (none by default), at or between its labels. Graph designs: Object › Graph › Design lists the designs with a preview of the selected one, and New Design (the selected art), Rename, Delete Design, Paste Design (a copy back to edit) and Select Unused, and Marker draws the data points and legend swatches of line, scatter and radar series with a design, scaled so its backmost object fills the default marker's square. The Appearance, effect and graphic style commands do not edit a design's art inside a series, which the graph draws again from the design. Graph Data transposes rows and columns and switches a scatter graph's x and y, and a `|` in a category or series label starts a new line. Pie graphs take Legends in Wedges, Position (Even, Ratio sized by area, Stacked on one centre) and Sort (None, All, First). Graph Type takes column and cluster widths up to 1000% (overlapping past 100%) with First Row and First Column in Front (First Row orders each series' categories; across series the series order decides, so series stay one group each for Group Selection), draws filled lines, adds drop shadows behind columns, bars, lines and wedges, and puts the legend in rows across the top. Text formatted with the Character, Paragraph, Appearance, Transparency or Graphic Styles controls or the Eyedropper, or recolored, given Swap Fill and Stroke or Default Fill and Stroke, or given stroke options or a gradient, on the whole graph or on labels picked with Group Selection, is kept per kind of label (value axis numbers, category labels, legend labels) through the graph being drawn again, the paint, weight, opacity and blend mode of a label's topmost visible fill and stroke rows and its object opacity and blend mode included. On a pie with Legends in Wedges, the legend labels are drawn black, or white on a dark wedge, until a command sets their fill, which is then drawn on every wedge, black included, and kept through save and open. Object › Graph › Data opens a worksheet: cells picked with a click and edited above the sheet (Tab moves right, Enter down, the arrows between cells), Import Data from a tab-separated text file, Transpose, Switch x/y, Cell Style (decimals shown, column width), Revert and Apply. `graph.setData` returns and takes the data as CSV with each value written exactly, not rounded to two decimals, so applying the returned CSV changes nothing (#1485).
- **Graphs:** Column, Stacked Column, Bar, Stacked Bar, Line, Area, Scatter, Pie and Radar graph tools with Graph Data and Graph Type. A series starts in greyscale; Group Selection's fill and stroke, the paint, weight, opacity and blend mode of a mark's top visible fill or stroke row after an Appearance command or a graphic style (each given a mark or its series picked with Group Selection), the Eyedropper, Default Fill and Stroke or Swap Fill and Stroke, the paint or stroke weight a stroke weight, gradient or recolor command changes there, a mark's object opacity and blend mode, and the opacity, blend mode, isolation and knockout of a series group picked with Group Selection, are kept separately on the graph and reapplied when its data, type or size changes, and through save, open and undo; a kept gradient takes the same place on each mark's own box. A series that draws Filled Lines bands keeps no stroke paint or weight: its bands are drawn again with their 0.25 pt black outline. Graph Type's Override Calculated Values (both `axisMin` and `axisMax`) uses exactly that value-axis range, split into the tick count (5 when automatic). Line graphs take Edge-to-Edge Lines (off by default: the points sit at the centres of their categories; graphs saved before the option keep their edge-to-edge lines), and radar graphs follow Mark Data Points and Connect Data Points. Blank cells (an empty CSV cell or `null`) are values left out, not zeros: columns, bars and stacked segments skip them, lines and scatter lines break around them and the value axis ignores them, while area, pie and radar draw them as 0; a number in straight quotes is a label, and the data window writes it back quoted. Graph types combine: Graph Type on series picked with Group Selection (or `series` indexes) draws them as their own type, with column, stacked column, line and area mixing on the vertical value axis and bar and stacked bar on the horizontal one; stacked columns take one slot of the cluster, lines draw in front of columns and areas behind. The value axis goes on the left, the right or both sides (column, stacked column, line, area and scatter graphs; bar graphs keep theirs along the bottom), and Separate Scales gives the series assigned to the right axis a scale of their own with its own tick values. Each value axis takes tick marks of no, short or full (across the plot) length and a count per division, and a prefix and suffix for its numbers; the category axis takes tick marks too (none by default), at or between its labels. Graph designs: Object › Graph › Design lists the designs with a preview of the selected one, and New Design (the selected art), Rename, Delete Design, Paste Design (a copy back to edit) and Select Unused, and Marker draws the data points and legend swatches of line, scatter and radar series with a design, scaled so its backmost object fills the default marker's square. The Appearance, effect and graphic style commands do not edit a design's art inside a series, which the graph draws again from the design. Graph Data transposes rows and columns and switches a scatter graph's x and y, and a `|` in a category or series label starts a new line. Pie graphs take Legends in Wedges, Position (Even, Ratio sized by area, Stacked on one centre) and Sort (None, All, First). Graph Type takes column and cluster widths up to 1000% (overlapping past 100%) with First Row and First Column in Front (First Row orders each series' categories; across series the series order decides, so series stay one group each for Group Selection), draws filled lines at its Line Width (3 pt when none is set, 0.01 to 1000 pt), adds drop shadows behind columns, bars, lines and wedges, and puts the legend in rows across the top. Text formatted with the Character, Paragraph, Appearance, Transparency or Graphic Styles controls or the Eyedropper, or recolored, given Swap Fill and Stroke or Default Fill and Stroke, or given stroke options or a gradient, on the whole graph or on labels picked with Group Selection, is kept per kind of label (value axis numbers, category labels, legend labels) through the graph being drawn again, the paint, weight, opacity and blend mode of a label's topmost visible fill and stroke rows and its object opacity and blend mode included. On a pie with Legends in Wedges, the legend labels are drawn black, or white on a dark wedge, until a command sets their fill, which is then drawn on every wedge, black included, and kept through save and open. Object › Graph › Data opens a worksheet: cells picked with a click and edited above the sheet (Tab moves right, Enter down, the arrows between cells), Import Data from a tab-separated text file, Transpose, Switch x/y, Cell Style (decimals shown, column width), Revert and Apply. `graph.setData` returns and takes the data as CSV with each value written exactly, not rounded to two decimals, so applying the returned CSV changes nothing (#1485).
An Eyedropper pick that includes transparency and leaves a mark's top fill or stroke row without paint, or removes that row when the source has no row of that kind, where that row had paint before, also replaces the opacity and blend mode the graph keeps for that kind of row in the series; a row that had no paint before the pick leaves them as they are.
What Global Edit gives a mark from another match (in an isolated graph) is kept on the graph the same way, and so is the object opacity, with its blend mode, that Randomize Opacity and Sort Objects change on marks.
- **Graph column designs:** Object › Graph › Column (`graph.column`) draws the columns, bars or stacked segments and the legend swatch of the series picked with Group Selection with a graph design: Vertically Scaled stretches it to each column's length, Uniformly Scaled scales it both ways and centers it, Repeating stacks a copy for each Each Design Represents value and chops or scales the last one (For Fractions), and Sliding keeps the part above the design's guide line in proportion and stretches the part below. The dialog lists the designs with a preview; the choice is saved with the graph and follows the design's rename and delete.