Hi, I have the following canvas js code for my graph,
`var line=new CanvasJS.Chart(“chartContainer_line”,
{
title:{
text: “Revenue”,
fontFamily: “calibri black”
},
animationEnabled: true,
axisY: {
title: “Company Based Revenue”
},
legend: {
verticalAlign: “bottom”,
horizontalAlign: “center”
},
theme: “theme1”,
data: [
{
type: “column”,
showInLegend: true,
legendMarkerColor: “grey”,
legendText: “Currency in Rupees(₹)”,
dataPoints: [
{y: 297571, label: “SD1”},
{y: 267017, label: “SD2” },
{y: 175200, label: “SD3”},
{y: 154580, label: “SD4”},
{y: 116000, label: “SD5”},
{y: 97800, label: “SD6”},
{y: 20682, label: “SD7”},
{y: 20350, label: “SD10”}
]
}
]
});
line.render();`
As you can notice the legendText attribute i have specified the text ₹ and it recognized the rupee symbol, I want to add the html unicode characters to show the Rupee symbol inside the Chart. Thanks for help.
-
This topic was modified 8 years, 8 months ago by lakshman.
-
This topic was modified 8 years, 8 months ago by lakshman.