Changing chart series type from button


Is it possible to have the series type of a chart (column,bar, line etc) bound to a page property such that it could be controlled by a user using something like a dropdown or series of buttons? I've tried binding it to a string and using values such as "Bar" which doesn't work. Is there a list of specific typed enums that need to be used?

You can't change the type of the series that way. Different series have different properties. You can set the Visible property of the series instead - hide/show whatever series is needed e.g. ${showBar} or ${seriesIndex == 0}.

Hi @korchev,

That works perfectly! Many thanks :smiley: