How do I change the name of series in the legend?

Editing the name of the series is super simple. Just add a "text" attribute to each series and set it to the name you with you display.

  "series":[
      {
          "values":[11,26,7,44,11],
          "text":"Bender"
      },
      {
          "values":[28,42,26,13,10],
          "text":"Fry"
      },
      {
          "values":[20,16,40,9,13],
          "text":"Zoidberg"
      },
      {
          "values":[8,31,12,40,27],
          "text":"Scruffy"
      }
  ]

Here's that example expanded: http://www.zingchart.com/docs/features/legend/#legend__text

 

 

Have more questions? Submit a request

0 Comments

Please sign in to leave a comment.