Easycharts and warning in Servoy 6.0.3

Hi!
I was using easycharts with Servoy 5.2 and had no problems.
Now, in Servoy 6, taking a line chart, when I define the values ​​I have the following warning and I can not fix, in setSampleValues():

WARNING: The function setSampleValues(Number,Array) is not applicable for the arguments (Number,Array)

The graph is displayed correctly, only warning given in the developer.
Probe by multiple ways of defining an array but I can not get the warning

Thank!
Roberto.

/** @type {LineChart} */
var chart = elements.LineChartBean;
chart.reset()
chart.setSeriesCount(4)
chart.titleOn = true;
chart.title = ‘title’
var Bkgd = “0xFFFFFF”
chart.background = new java.awt.Color(Bkgd) //Sets Background
chart.sampleLabelsOn = true;
chart.sampleLabels = Labels; //Array
chart.legendOn = true
chart.legendLabels = graf_leyenda //Array

chart.sampleCount = graf_total_debe.length;
chart.setSampleValues(0, graf_total_debe);
chart.setSampleValues(1, graf_total_haber);
chart.setSampleValues(2, graf_total_saldo);
chart.setSampleValues(3, graf_total_saldo_acum);

chart.setRange(0, graf_valor_Max * 1.1);
chart.setValueLabelsOn(true);
chart.valueLabelStyle = 0
chart.setLabel(“valueLabelPrefix”, “”);
chart.valueLinesOn = true;

What is “graf_total_debe” ?
(and the others?)

are those form variables?

declare them as what the warning wants you to have:

/**

  • @type Array

*/
var graf_total_debe = new Array();

Thanks Johan!
+1
Roberto.

Alternatively you can also use VelocityReport’s charting abilities:
https://www.servoyforge.net/projects/ve … i/Charting

There’s even an Eclipse project that will write the chart code for you:
https://www.servoyforge.net/projects/ve … ilder/wiki

;)