Sets the color of line connecting index labels with their dataPoint. It is only applicable for pie and doughnut chart when indexLabelPlacement is outside. For other chart-types, indexLabelLineThickness should be set greater than zero. The value of indexLineColor can be a “HTML Color Name” or “hex code” or “rgba values” .
var chart = new CanvasJS.Chart("container", { . . data: [{ dataPoints: [ { y: 10, indexLabel:"apple", indexLabelLineColor: "green" }, ], }, ] . . }); chart.render();
Comments 2
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 it possible to remove labels and their lines in the graph, but still keep it in the tooltip?
Yes, you can hide labels by setting valueFormatString of axis to a space character and hide ticks by setting tickLength to 0. Please refer to this example.