Is it possible to change the chart type in the widgets dynamically?

I tried using the filter to add few options and then use $this->filter in the getType() method, but to no avail. Has anyone tried this already?
Was this page helpful?