toolTip for entire chart can be set by adding content at toolTip object. content can either be HTML or text string.
Default: autovar chart = new CanvasJS.Chart("container", { . . toolTip:{ content:"x: {x}, y: {y}" , }, . . }); chart.render();
eg. content: "Category {x} <br/>Value: {y} units"
eg: content: " x: {x}, y: {y[0]} , {y[1]} "
eg: content: " x: {x}, y: {y[0]}, {y[1]}, {y[2]}, {y[3]} "
eg: content: "y: <span style='\"'color: red;'\"'>{y}</span>"
eg: content: "{x}<br/> <span style='\"'color: {color};'\"'>{name}</span>, <strong>{y}</strong>",
eg: content: "x:{x}, y: {y} <br/> name: {name}, label:{label}"
eg: content: "{label} <hr/> x: {x}, y: {y}"