Closed aaaalvaradoii closed 7 years ago
Found out what the problem was. The npm install command installs a previous version of the package, prior to the github update where support for multiple lines was added. So I basically just downloaded from the github repo and replaced the react-native-charts folder that the npm command installed.
I've been trying to make the line chart to have more than 1 line by tweaking the arrays passed to the data of Chart. I discovered that it reads only the last array passed. i.e.
Input: data={array1, array2} Output: chart shows only the data points of array2
or
const data=[array1, array2] Input: data={data} Output: null
or even for example, this format: const data = [[ [0, 1], [1, 3], [3, 7], [4, 9], ], [ [1, 2], [3, 4], [5, 6], [7, 8], ]];
Just want to make it clear, does this feature support multiple data sets?
EDIT: Just discovered that this supports multi-line charts, but how exactly is the proper syntax for that?