This question is locked. New answers and comments are not allowed.
Hi,
I'm trying to get multiple lines in a scatter line chart. In the examples it is done as such:
I saw there was a ScatterLine method with a parameter of type IEnumerable, but I can't find anywhere how to use it. If I could use this, it would solve my problem as I could just write something like:
I hope there is a way to achieve this for the general case. I was able to add multiple series to a bar chart in a similar fashion. I don't want to use the regular line chart, because it doesn't give me enough control over the major and minor lines on the axis.
Regards,
Mels
I'm trying to get multiple lines in a scatter line chart. In the examples it is done as such:
This all seems very easy, but I don't know at compile-time how many lines I'm going to have, so this approach won't work..Series(series => {series.ScatterLine(d => d.RPM, d => d.Power);series.ScatterLine(d => d.RPM, d => d.Torque).YAxis("torque");})
I saw there was a ScatterLine method with a parameter of type IEnumerable, but I can't find anywhere how to use it. If I could use this, it would solve my problem as I could just write something like:
.Series(series => { for (int i = 0; i < listOfLists.Count; i++) { series.ScatterLine(listOfLists[i]); } })I hope there is a way to achieve this for the general case. I was able to add multiple series to a bar chart in a similar fashion. I don't want to use the regular line chart, because it doesn't give me enough control over the major and minor lines on the axis.
Regards,
Mels