Very simple question: I have two arrays, one which contains time values, and one that contains values of f(t). I want to use XOJO’s native graphing tools for this, could someone provide me with some code that would work. This is what I am doing now which is not working:
Var ds As New ChartLinearDataset(“Sales”, Color.Blue, True, GraphData)
Var ds1 As New ChartLinearDataset(“Sales”, Color.Blue, True, TimeData)
MainGraphDataChart.AddDataset(ds)
MainGraphDataChart.AddDataset(ds1)
Var ds As New ChartLinearDataset(GraphChoicePopupMenu.SelectedRowText, Color.red, True, GraphData)
ds.ChartType = ChartLinearDataset.ChartTypes.Line
MainGraphDataChart.AddDatasets ds
I know the above code won’t work but I am not sure how to fix it. GraphData and TimeData each will have over 600,000 elements, I want to plot points on the graph of the form (TimeData(i),GraphData(i)). Is there a way to make each point in graph data correspond to a time value and then plot this?