Sets the maximum width of legend. If any item is longer than the maxWidth, it gets wrapped or clipped depending on the itemWrap property. itemWrap is true by default. Whenever items are stacked horizontally, new items are moved to the next row once maxWidth is reached.
var chart = new CanvasJS.Chart("container", { . . legend:{ maxWidth: 200, }, . . }); chart.render();
Also See:
Comment
Server Side Technologies |
Front End Technologies |
Contact |
|
---|---|---|---|
ASP.NET MVC Charts | JavaScript Charts | FAQs | |
PHP Charts | jQuery Charts | Sales Enquiries | |
Spring MVC Charts | React Charts | Support Forum | |
JSP Charts | Angular Charts | Careers | |
JavaScript StockCharts | |||
Privacy Policy © fenopix
Is there a way that you could put width as a percentage (chart width 100% of page, and legend is 25% of the chart size)?