label: String

Sets the label (text) shown inside Range Button.


Default: Automatically assigned based on the range.
Example: “1M”, “5M”, …

var stockChart = new CanvasJS.StockChart("container",
{
 .
 .
 rangeSelector: {
   .
   .
   buttons: [
     {
       .
       label: "1M",
       .
     }
   ]
 },
 .
 . 
});
stockChart.render();
    



Try it Yourself by Editing the Code below.


  Also See:    



If you have any questions, please feel free to ask in our forums.Ask Question