I'm seeking advice on the best source for assistance with CanvasXpress. I haven't found any relevant threads in the forum yet. Currently, I'm using CanvasXpress to showcase dynamic data and I know that it accepts json objects. My issue arises when constructing a heatmap and inputting specific javascript array variables as values for the vars:, smps:, and data: variables. The problem lies in creating a proper json object; upon assigning my arrays like var axis = 'A2', 'A3', 'A20', 'A6' [...] matrix = [0.00, 0.33, 0.00, 0.00] [...], all I get are errors or a non-loading page.
The challenge now is integrating these variables into the following json object:
var cx = new CanvasXpress('canvas1',
{y: {vars: axis,
smps: axis,
desc: ['Intensity'],
data: [matrix]}},
{graphType: 'Heatmap',
showDataValues: true,
background: 'rgb(245,245,245)',
indicatorCenter: 'rainbow',
heatmapType: 'green',
centerData: true,
indicatorWidth: 8});
If you could offer guidance on this matter or direct me to a more suitable forum for help, I would greatly appreciate it.
Many thanks!