Able to make a chart in a view using html as a variable and the code as a string in python