cancel
Showing results for 
Search instead for 
Did you mean: 

change legend name in vizframe

Former Member
0 Kudos

Hi guys,

I have been messed about vizframe for two days, and I am now stuck with legend .

it seems that the label name in legend are assigned to by property in data, I have not found, after reading doc thoroughly, any way to change the text, during the create of vizframe.

the following is an example that I would like to change legend in. 

[{

        "Store Name": "24-Seven",

"Revenue": 428214.13,

"Cost": 94383.52,

"Consumption": 76855.15368

    },

    {

        "Store Name": "A&A",

"Revenue": 1722148.36,

"Cost": 274735.17,

"Consumption": 310292.22

    },

    {

        "Store Name": "Alexei's Specialities",

"Revenue": 1331176.706884,

"Cost": 233160.58,

"Consumption": 143432.18

},


Accepted Solutions (1)

Accepted Solutions (1)

saivellanki
Active Contributor
0 Kudos

Hi Torren,

In your Flattened Dataset --> measures , there is a name property. Provide the name that you want to display on legend.

Sample --> JS Bin - Collaborative JavaScript Debugging


Regards,

Sai Vellanki.

Answers (1)

Answers (1)

vijay_kumar49
Active Contributor
0 Kudos
Former Member
0 Kudos

Hi Kumar,

I read the thread before,

unfortunately, the code in jsbin has been removed, and the answer by Stefan Fuchs does not work for me