Since version 8.06 it’s possible to display legends for the different series. But how is the names of the sets in the series determined? In my chart they turn up as “Col 1, Col 2…”. Is this the column names/headers in the dataset? I’m presenting data fetched from a DB with a runPrepQuery, so there is no column names set by me.
@swox, Try adjusting the query string that you are using with your
runPrepQuery. You can rename the columns that you are getting back to a format of your liking; for example, a query like this:
SELECT time, chart_data.col_1 AS 'Column 1', chart_data.col_2 AS 'Column 2' FROM chart_data
…can result in a legend that looks like this: