Building on the Quick Start example, you can format and rotate the axis labels using the annoFormatString and labels options of the axis, and format the tooltip text by creating a function for the content of the hint option.
Drop down and copy script to paste in <head> section
Script |
Copy Code |
---|---|
<script id="scriptInit" type="text/javascript"> $(document).ready(function () { $("#wijscatterchartDefault").wijscatterchart({ axis: { x: { text: "Annual Income per Person", annoFormatString: "C0", labels: {style: {rotation: -45}} }, y: {text: "Birth Rate"} }, hint:{ content: function(){ return this.data.label + '\n ' + Globalize.format(this.x, "C0") + ''; } }, seriesList: [ { label: "Madagascar", data: {x: [800], y: [5.7]} }, { label: "India", data: {x: [3100], y: [2.85]} }, { label: "Mexico", data: {x: [9600], y: [2.49]} }, { label: "Taiwan", data: {x: [25300], y: [1.57]} }, { label: "Norway", data: {x: [40000], y: [1.78]} }] }); }); </script> |