I have two arrays:
Y = [180, 200,160,190,120,140,150]
X = [1,2,3,4,5,6,7]
I want to plot a chart where Y axis shows percentage of the data and X shows just labels. Thus Y axis in above example should show:
Yvalues = [90,100,80,95,60,70,75]
X axis simply should show 1 through 7 for the corresponding points.
Further, if possible, the user should be able to switch between absolute values or percentage.
How do I achieve this?