Scatter chart

Category: Visualisation

Status: Registered and callable in the CyberChef 11.3.0 compatibility inventory.

Input / output: string → html

Background: https://wikipedia.org/wiki/Scatter_plot

What it does

Plots two-variable data as single points on a graph.

Note

Status here means the operation name is implemented and callable. It does not by itself promise byte-for-byte parity for every upstream option. See Compatibility and current status for the verified scope and known boundaries.

Arguments and options

Arguments are positional. Keep their order when using bake() or Pipeline.then().

Index

Name

UI type

PyChef default

Accepted values / format

0

Record delimiter

option

'Line feed'

'Line feed', 'CRLF'

1

Field delimiter

option

'Comma'

'Space', 'Comma', 'Semi-colon', 'Colon', 'Tab'

2

Use column headers as labels

boolean

True

True or False

3

X label

string

''

''

4

Y label

string

''

''

5

Colour

string

'black'

A Python string

6

Point radius

number

10

A Python integer or floating-point value

7

Use colour from third column

boolean

False

True or False

Recipe template

Important

This is a call template built from the documented defaults. Replace placeholder values such as empty keys, paths, patterns, or lookup data before running it.

from pychef import bake

input_value = "example"
args = ['Line feed', 'Comma', True, '', '', 'black', 10, False]
result = bake(input_value, [{"op": 'Scatter chart', "args": args}])
print(result)

Pipeline example

from pychef import Pipeline

args = ['Line feed', 'Comma', True, '', '', 'black', 10, False]
transform = Pipeline().then('Scatter chart', *args)
result = transform("example")

Dedicated operation module

The registered entry point lives in pychef.operations.by_operation.scatter_chart. Direct calls receive the input value and a positional argument tuple:

from pychef.operations.by_operation.scatter_chart import run

result = run("example", tuple(['Line feed', 'Comma', True, '', '', 'black', 10, False]))
pychef.operations.by_operation.scatter_chart.run(value, args)

Run this operation using its shared internal implementation.

Parameters:
  • value (str | bytes)

  • args (Sequence[Any])

Return type:

str | bytes