Visualization: Is it doable to have multiple Y columns with grouping?

I can draw line chart with multiple columns, each for one line; or a single Y column with another column as group. But is it possible to do them at the same time?

e.g. I have some thing like

index    |    value X     | value Y    |     Group
---------+----------------+------------+---------------
01       |   0.8          |   0.9      |      A
01       |   0.7          |  0.75      |      B
02       |   0.85         |   0.6      |      A
02       |   0.7          |  0.55      |      B

So I’d like to draw 4 lines in the line chart, i.e. value X for group A, value X for group B, value Y for group A, value Y for group B