Hex Density chart

Group X/Y observations into hexagons and color them by count. Pack radius uses data units; draw radius controls the visible hexagon size.

Input: TextResult: HTML with a sandboxed preview

Text input

Examples

Separate two click clusters

Input

0 0
1 1
-1 -1
80 60
81 61
79 59

Expected chart

-20-2043.301330106.60380Center: 0, 0; Count: 3Center: 86.60254037844385, 60; Count: 3XY
(0, 0): 3
(86.60254, 60): 3
Total: 6
Record delimiter
Line feed
Field delimiter
Space
Pack radius
10
Draw radius
15
Use column headers as labels
Off
X label
X
Y label
Y
Chart mode
Data plot
Count repeated clicks in one hexagon

Input

0 0
1 0
-1 0
0 1
0 -1
0 0
1 1
40 30

Expected chart

-20-2017.32051554.64150Center: 0, 0; Count: 7Center: 34.64101615137754, 30; Count: 1XY
(0, 0): 7
(34.641016, 30): 1
Total: 8
Record delimiter
Line feed
Field delimiter
Space
Pack radius
10
Draw radius
15
Use column headers as labels
Off
X label
X
Y label
Y
Chart mode
Data plot
A dense cluster against sparse background

Input

0 0
1 0
0 1
1 1
60 0
0 60
60 60

Expected chart

-20-2025.98083071.961580Center: 0, 0; Count: 4Center: 0, 60; Count: 1Center: 51.96152422706631, 0; Count: 1Center: 51.96152422706631, 60; Count: 1XY
(0, 0): 4
(0, 60): 1
(51.961524, 0): 1
(51.961524, 60): 1
Total: 7
Record delimiter
Line feed
Field delimiter
Space
Pack radius
10
Draw radius
15
Use column headers as labels
Off
X label
X
Y label
Y
Chart mode
Data plot
Keep points on both sides of a bin boundary

Input

8.5 0
8.8 0
0 0
17.4 0
0.1 15

Expected chart

-20-208.660257.537.320535Center: 0, 0; Count: 2Center: 8.660254037844386, 15; Count: 1Center: 17.32050807568877, 0; Count: 2XY
(0, 0): 2
(8.660254, 15): 1
(17.320508, 0): 2
Total: 5
Record delimiter
Line feed
Field delimiter
Space
Pack radius
10
Draw radius
15
Use column headers as labels
Off
X label
X
Y label
Y
Chart mode
Data plot
Group iris sepal measurements in millimetres

First eight records; sepal centimetres multiplied by 10 to obtain millimetres.

Input

51.0 35.0
49.0 30.0
47.0 32.0
46.0 31.0
50.0 36.0
54.0 39.0
46.0 34.0
50.0 34.0

Expected chart

31.96151056.291737.580.621865Center: 51.96152422706631, 30; Count: 7Center: 60.6217782649107, 45; Count: 1Sepal length × 10 (mm)Sepal width × 10 (mm)
(51.961524, 30): 7
(60.621778, 45): 1
Total: 8
Record delimiter
Line feed
Field delimiter
Space
Pack radius
10
Draw radius
15
Use column headers as labels
Off
X label
Sepal length × 10 (mm)
Y label
Sepal width × 10 (mm)
Chart mode
Data plot
Hex density chart

Reproduce this published regression case and compare the exact result. Hex density chart.

Input

100 100
200 200
300 300
400 400
500 500

Expected checks

Matches /^<svg width/
Record delimiter
Line feed
Field delimiter
Space
Pack radius
25
Draw radius
15
Use column headers as labels
On
X label
(empty)
Y label
(empty)
Draw hexagon edges
On
Min colour value
white
Max colour value
black
Draw empty hexagons within data boundaries
On
Chart mode
Original

Related tools

Browse multimedia tools