I have a list of tuples (x,y) of a MDS projection result and I need to show the points names/labels. So I also have a list of labels.
For instance:
labels = ['a','b','c','d']
points = [(1,2),(1,3),(1,4),(4,5)]
xy_chart = pygal.XY(stroke=False,style=LightColorizedStyle)
xy_chart.title = 'MDS projection'
xy_chart.add('Result', points)
I saw a solution using metadata and dictionary for barcharts:
chart = pygal.Bar()
chart.add('Red', [{
'value': 2,
'label': 'This is red',
'xlink': 'http://en.wikipedia.org/wiki/Red'}])
chart.add('Green', [{
'value': 4,
'label': 'This is green',
'xlink': 'http://en.wikipedia.org/wiki/Green'}])
How could I do this using scatter plot XY function from Pygal?