Solved

Chart value showing up as 15k instead of 15000

  • 1 August 2023
  • 3 replies
  • 73 views

Userlevel 1
Badge +4

Hey all,

is it possible to display the whole value instead of displaying it as 15k?

We want to display it like this because the user may mistake it as 15kg

 

icon

Best answer by Tim de Lang 3 August 2023, 14:23

View original

This topic has been closed for comments

3 replies

Userlevel 3
Badge +3

Hi Timothy,

You can specify chart attributes in Universal as per https://docs.thinkwisesoftware.com/docs/sf/cubes#configure-chart-properties

I think the property you are looking for is something like

"chartDefaults": {

  "formatNumber": "0"

}

as per https://www.fusioncharts.com/dev/chart-guide/chart-configurations/number-format.

Kind regards,

Tim de Lang

Userlevel 1
Badge +4

Hey @Tim de Lang ,

I’ve tried what you suggested and it still doesn’t work.

 

These are the things i’ve tried in the config.json:

  1. {
        "defaultApplication":  "",
        "defaultPlatform":  3,
        "loginOptionsDisabled":  false,
        "loginOptionsHidden":  false,
        "installNotificationDisabled":  true,
        "installNotificationExpirationInDays":  30,
        "useFormFieldBackgroundColor":  true,
        "chart":{
          "formatNumber":"0"
       }
    }
  2. {
        "defaultApplication":  "",
        "defaultPlatform":  3,
        "loginOptionsDisabled":  false,
        "loginOptionsHidden":  false,
        "installNotificationDisabled":  true,
        "installNotificationExpirationInDays":  30,
        "useFormFieldBackgroundColor":  true,
        "chartDefaults":{
          "formatNumber":"0"
       }
    }
  3. {
        "defaultApplication":  "",
        "defaultPlatform":  3,
        "loginOptionsDisabled":  false,
        "loginOptionsHidden":  false,
        "installNotificationDisabled":  true,
        "installNotificationExpirationInDays":  30,
        "useFormFieldBackgroundColor":  true,
        "chartDefaults":{
          "formatNumberScale":"0"
       }
    }
  4. {
        "defaultApplication":  "",
        "defaultPlatform":  3,
        "loginOptionsDisabled":  false,
        "loginOptionsHidden":  false,
        "installNotificationDisabled":  true,
        "installNotificationExpirationInDays":  30,
        "useFormFieldBackgroundColor":  true,
        "chart":{
          "formatNumberScale":"0"
       }
    }
  5. {
        "defaultApplication":  "",
        "defaultPlatform":  3,
        "loginOptionsDisabled":  false,
        "loginOptionsHidden":  false,
        "installNotificationDisabled":  true,
        "installNotificationExpirationInDays":  30,
        "useFormFieldBackgroundColor":  true,
        "chartDefaults":{
          "yFormatNumberScale":"0"
       }
    }

 

Also who pays the expenses on these? i’ve read that there are plans

https://cart.fusioncharts.com/

Userlevel 3
Badge +3

Hi Timothy,

This seems to work for me:

{

  "defaultApplication": "",

  "defaultPlatform": 3,

  "loginOptionsDisabled": false,

  "loginOptionsHidden": false,

  "installNotificationDisabled": true,

  "installNotificationExpirationInDays": 30,

  "useFormFieldBackgroundColor": true,

  "chartDefaults": {

    "numberScaleValue": "1",

    "numberScaleUnit": ""

  }

}

It says to scale the value per 1, rather than (1000, 1000) and leave the unit (K, M) empty.

Kind regards,

Tim de Lang