kduchacek Posted November 1, 2021 Share Posted November 1, 2021 Hi,I would like to change a label of column according the series (HTML5 - column chart). For example, one column shows count and second column cost. I tried to use formater but I am not sure about the format of condition.When I tested the number it worked: "function() { if(this.y > 200) return 'Good '; else return 'Poor';}"When I tried to test the series name it failed:"function() {this.series.name == "Actual" ? return this.series.name + this.y + 'A' : return this.series.name + this.y + 'C'}"or <![CDATA["function() {this.series.name.toString() == "Actual" ? return this.series.name + this.y + 'A' : return this.series.name + this.y + 'C'}"]]>or"function() {this.series.name.toString() == &Actual& ? return 'A' : return 'C'}" Thanks for your help Link to comment Share on other sites More sharing options...
yama818 Posted November 7, 2021 Share Posted November 7, 2021 The following formula may work.function() { if(this.series.name == "Actual") return this.series.name + this.y + 'A '; else return this.series.name + this.y + 'C';}I hope this is useful to you. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now