I have an application with a react frontend and I want to use Frappe charts to show some data. I have a Switch which changes the value on the chart from line to bar. The problem