Jump to content

Different label of each series in Column chart


kduchacek

Recommended Posts

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

  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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 account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...