Hi,
The newly added feature for incorporating Highcharts visuals in QuickSight is fantastic! I believe it’s one of the most valuable updates introduced in recent months.
I’ve been exploring it and tried using examples from Demo Central as well as adapting code from the Highcharts website to work in QuickSight. However, I’m encountering some challenges.
I understand that Highcharts in QuickSight only supports valid JSON, which means functions aren’t currently supported.
For instance, in Highcharts, we can use functions like the one below to set decimal points and thousand separators:
https://api.highcharts.com/highcharts/lang.thousandsSep
$(function () {
Highcharts.setOptions({
lang: {
decimalPoint: '.',
thousandsSep: ','
}
});
How to add this to this example code?
{
"chart": {
"type": "variwide"
},
"xAxis": {
"type": "category"
},
"caption": {
"text": "Column widths are proportional to Profit"
},
"legend": {
"enabled": false
},
"series": [
{
"type": "bullet",
"name": "Products",
"data": [
"map",
["getColumn", 0, 1, 2], // Product, Sales, Profit
{
"name": ["get", ["item"], 0], // Product
"y": ["get", ["item"], 1], // Sales
"z": ["get", ["item"], 2] // Profit
}
],
"tooltip": {
"useHTML": true,
"headerFormat": "<span style=\"color:{point.color}\">\u25CF</span>",
"pointFormat": "<b>{point.name}</b><br/>Sales: <b>{point.y:,.2f}</b><br/>Profit: <b>{point.z:,.2f}</b><br/>"
},
"dataLabels": {
"enabled": true,
"format": "{point.y:,.2f}",
"style": {
"textOutline": "none",
"fontWeight": "normal",
"fontSize": "12px"
}
},
"borderRadius": 3,
"colorByPoint": true
}
]
}