Skip to content

Unable to override default tree delimiter #1849

Closed
@thenbe

Description

@thenbe

The custom delimiter should replace the default delimiter, instead of being appended to it.

Repro: https://observablehq.com/d/96ac483a54482567

Code

data = [
	'foo;bar;http://www.example.com',
	'foo;bar;https://www.example.com/posts/1',
	'foo;baz;https://www.example.com/posts/2',
];

Plot.plot({
	axis: null,
	height: 100,
	margin: 10,
	marginLeft: 40,
	marginRight: 120,
	marks: [Plot.tree(data, { delimiter: ';' })],
});

Expected

In Plot.tree, declaring a custom delimiter ; should result in a tree where only ; is used as a delimiter.

Actual

In Plot.tree, declaring a custom delimiter ; results in a tree where both ; and / are used as delimiters.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn’t working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions