Smart chart style

Hey :smiley: I have created a smart chat where one of its columns shows the amount of money. I would like to add next to each value the dollar symbol. Currently it is shown as is:

Screen Shot 2021-10-12 at 09.33.49

I would like the values to be shown instead, e.g. $60.00 USD.

How can i achieve this?

Hi @usr1vang,

It will be easier for me to help you with the code of your smart chart :wink:. Could you please share it :slight_smile: ?

Sure. I attached below:

Hmm not sure you are talking about smart chart. Arenโ€™t you talking about API Chart ? If yes you canโ€™t achieve what you want with the API Chart for now :confused:

No, it is a smart chart. Here is the other part of the code:

Okey this is the part that interest me :slight_smile:

export default class extends Component {
  async fetchData() {
    const response = await this.lianaServerFetch('/forest/transaction-chart', {});
    const jsonResponse = await response.json();
    this.charities = => ({, amount: `$${charity.amount} USD` })); 

This should display the dollar like you wanted :wink:

1 Like