Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
835
Multiple series on line chart
posted

I'm trying to do something that should be ridiculously easy and can't get it to work.  I want to display a line chart with multiple series that represent similar data.  Here is a basic layout of my data:

Col1: theType
Col2: theDate
Col3: theQuantity

I want to display a line for each type but I don't know the types until runtime.


Mark <><

Parents
  • 26458
    Offline posted

    I'm not quite sure how you are trying to display your data. The chart will display one line for each row, using values from numeric columns in that row. In your example, you would get a straight line for each row of data, plotted at Y=theQuantity.

    I have a feeling, you're expecting the chart to group data based on theType column. So if you have 5 rows, where theType = apple, you'd get a line with 5 points. If so, this is something you will have to do manually, before feeding the data to the chart control. The chart is not capable of doing such grouping.

    Perhaps, you could provide a few more details and an illustration of what you're trying to do.

Reply Children