Search code examples
javascriptdygraphs

Override series names in Dygraphs legend


I have control over the axes labels using xlabel and ylabel. How can I substitute series names in the legend? I have searched the options and see no opportunity.


Solution

  • If you're willing to build dygraphs from HEAD, you could use the new labelFormatter option. It lets you construct whatever HTML you like.