I want a chart with weekday as dimension and 2 expressions
Did you create a Weekday field in the script? Or is that chart dimension a date field? I suspect the latter. If so, you try to create a WeekDay field using the WeekDay function.
You may want to map the weekday numbers to names with a small inline mapping table and the applymap function.