Home forums Feature Requests & Feedback Support for HTML unicode characters

This topic contains 1 reply, has 2 voices, and was last updated by  Sanjoy 7 months, 4 weeks ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10104

    lakshman
    Member

    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 months ago by  lakshman.
    • This topic was modified 8 months ago by  lakshman.
    #10112

    Sanjoy
    Moderator

    Hi, lakshman

    You can use “\u20B9” to represent ₹. I hope that will fulfil your requirement.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.