How to pass Arrays from backing bean to java script to draw a chart using Chart.js in an Ajax call : I am using prime faces backing bean and  Chart.js to draw a chart
I am selecting a row in the data table . On selection of row updating the Canvas which has the Chart in it. I am getting the values on Selection method and building two arrays one for X axis and another for y-axis. How can i pass these arrays to Java script to render the chart . I tried Prime faces JSON array to pass to java script. I could not get the values in java script