HighchartsJSON with outsytems expression
Question

I have a HighchartsJson value like this (see below), I want to have the GetCurrency(Id).Symbol function to return a specific symbol depending on the given ID. The HighchartsJson value below labels a barchart (Please see the example below , the $ must  not be hardcoded it should be returned by the GetCurrency function, the function is an outsystems function that when called it returns a symbol. I am struggling to find solution for that , can anyone help ? Thank you.)

" {
 chart:{
        zoomType: 'xy',
    },

  yAxis: [{
        labels: {
            format: '{value}',
        },
        title: {
            text: 'Sales Value',
            format:'{$GetCurrency(Id).Symbol}', 
        }

    }, { 
        title: {
            text: 'Probability',
          
        },
   labels: {
            format: '{value}',
        },
        opposite: true
    }],
   plotOptions:{
    series:{
    cursor: 'pointer',
        marker:{
                enabled:true
        }
    },  series: {
            events: {
                legendItemClick: function () {
                    return true; 
                }
            }
        }
    }
}"

Hi,

right now, it's just part of a literal string, you'll have to concat bits of string with the function.


something like this 


"
...
...
...
        title: {
            text: 'Sales Value (" + yourFunction +")', 
        } 
...
...
...
"


Dorine


Hi Dorine I tried that solution and it worked perfectly fine , thank you!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.