Below is a little snippet of JS from my code. I understand how categoryField and field work and how the tootip templates work. I even know how to format the "value" in the template. The problem is I create these charts dynamically, and I don't know it if it integer, real, currency or percentage coming back.
I looked through the docs with no luck, but want to fine something like this
Where the fieldDisplay is the formatted result and use something like this:
Some Examples
field: 12345.12
fieldDisplay: $12,345.12
OR
field: .678989778
fieldDisplay: 68.9%
Is there a way to do this?
I looked through the docs with no luck, but want to fine something like this
categoryField: "Category",field: "Value",fieldDisplay: "ValueFormatted",template: "${category} ${valueDisplay} - Prior Period"field: 12345.12
fieldDisplay: $12,345.12
OR
field: .678989778
fieldDisplay: 68.9%
Is there a way to do this?
, series: [{ name: "Prior Period", overlay: { gradient: "none" }, categoryField: "Category", field: "Value", tooltip: { visible: true, template: "${category} ${value} - Prior Period" }, data: jsonPrior}, { name: $('#lblDateRange').html(), overlay: { gradient: "none" }, categoryField: "Category", field: "Value", tooltip: { visible: true, template: "${category} ${value} - " + $('#lblDateRange').html() }, data: jsonData}]