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;