#StackBounty: #python #d3.js #data-visualization Plotting catecorigal XY data including labels using Python (e. g. BCG matrices)

Bounty: 50

I like to draw 2×2 / BCG matrices. This time I have a rather big dataset (more than 50 topics and multiple values, e. g. A and B). I wonder how I can draw this using Python?

The result should look similiar to this:

enter image description here

I have found a couple of questions regarding scatter plots, but none of those really deals well with e.g. two topics with identical values (see topics 3,2,L,J,… above in the drawing).

The ID should be displayed in the drawing and ID’s with same set of values should not overlap, but stay rather close together.

Is there a way to do this? If not Python, I am also happy for other suggestions.

Here is an example dataset:

ID  Name        value_A     value_B
A   topic_1     2           4
B   topic_2     4           2
C   topic_3     3           3
D   topic_4     3           5
E   topic_5     3           4
F   topic_6     5           1
G   topic_7     4           5
H   topic_8     1           2
I   topic_9     4           1
J   topic_10    3           3
K   topic_11    5           5
L   topic_12    5           3
M   topic_13    3           5
N   topic_14    1           5
O   topic_15    4           1
P   topic_16    4           2
Q   topic_17    1           5
R   topic_18    2           3
S   topic_19    1           2
T   topic_20    5           1
U   topic_21    3           4
V   topic_22    2           5
W   topic_23    1           3
X   topic_24    3           3
Y   topic_25    4           1
Z   topic_26    2           4
1   topic_27    2           4
2   topic_28    5           4
3   topic_29    3           3
4   topic_30    4           4
5   topic_31    3           2
6   topic_32    4           2
7   topic_33    2           3
8   topic_34    2           3
9   topic_35    2           5
10  topic_36    4           2


Get this bounty!!!

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.