Not able to achieve a line graph

check your data point in your browser console by doing console.log(context.editor.dataset)

that should start giving you hints as to what you need to do.