WebChart code behaving differently in different pages

Hi - completely stuck on this one, hopefully someone can point me in the right direction.

I’ve built a WebChart (Bar) using the following code:

Var ChartData() As Double = Array(PaymentPercentage,ProgressPercentage)
Var ChartDataSet As New WebChartLinearDataset(“Payment vs Progress”,Color.Blue, True, ChartData)
PaymentChart.RemoveAllDatasets
PaymentChart.RemoveAllLabels
PaymentChart.AddDataset(ChartDataSet)
PaymentChart.AddLabels(“Payment”,“Progress”)

It works great!

I am building a second WebChart (Bar) in a different page with the following code:

Var DynamicData() As Integer = Array(CountConsultants, CountAdmin, CountSuper)
Var DynamicDataSet As New WebChartLinearDataset(“Active Users”,Color.Blue, True, DynamicData)
DynamicChart.RemoveAllDatasets
DynamicChart.RemoveAllLabels
DynamicChart.AddDataset(DynamicDataSet)
DynamicChart.AddLabels(“Consultants”,“Admin”, “Super Users”)

I am getting a compile error of: “There is more than one method with this name but this does not match any of the available signatures.” in this line:

Var DynamicDataSet As New WebChartLinearDataset(“Active Users”,Color.Blue, True, DynamicData)

Code is identical (constructs) in both pages, can’t figure out what’s wrong in the second.

Any guidance would be much appreciated.

DynamicData should be Double, no?

Thanks Alberto -

I can’t believe that was it! I had CountConsultants, CountAdmin and CountSuper declared as Integers so automatically created the Integer Array. Switching the Array to Double did the trick.

Sincerely appreciate the help,