I have three instruments that have their values recorded every 5 minutes
This produces the following sample data pulled from a SQL database:
Time Name Value
17/04/2018 00:01:02 Instrument_1 1.49
17/04/2018 00:01:25 Instrument_2 0.35
17/04/2018 00:01:53 Instrument_3 11.39
17/04/2018 00:06:02 Instrument_1 1.52
17/04/2018 00:06:25 Instrument_2 0.33
17/04/2018 00:07:01 Instrument_3 12.37
17/04/2018 00:11:02 Instrument_1 1.56
17/04/2018 00:11:25 Instrument_2 0.38
17/04/2018 00:11:53 Instrument_3 12.37
17/04/2018 00:16:02 Instrument_1 1.55
17/04/2018 00:16:25 Instrument_2 0.33
17/04/2018 00:16:54 Instrument_3 11.39
17/04/2018 00:21:02 Instrument_1 1.55
17/04/2018 00:21:25 Instrument_2 0.38
17/04/2018 00:21:54 Instrument_3 12.37
17/04/2018 00:26:02 Instrument_1 1.6
17/04/2018 00:26:25 Instrument_2 0.26
17/04/2018 00:26:54 Instrument_3 12.04
17/04/2018 00:31:02 Instrument_1 1.58
17/04/2018 00:31:25 Instrument_2 0.3
17/04/2018 00:31:54 Instrument_3 12.09
I want to chart this information , as a line graph, with date/time on the X axis , showing a separate line for each Instrument Name (Series), with the value as the Y axis.
When I try to create a simple line chart it defaults to creating a single line, with the x axis being date/time and instrument Name, and the y axis being the value
I know this must be easy but I cant figure it out.
I know I could do this if the data was in tabular form but since the date/time values are all different then this is not possible
I would also like to be able to chart for any number of instruments up to 5 going forward.
I tried it as a pivot table/chart but ran into issues there as I have to average the values instead of summing them , and then got blank spaces in the graph where there was a was a time difference in the minutes i.e.
Time Name Value
17/04/2018 00:01:02 Instrument_1 1.49
17/04/2018 00:01:25 Instrument_2 0.35
17/04/2018 00:01:53 Instrument_3 11.39
17/04/2018 00:06:02 Instrument_1 1.52
17/04/2018 00:06:25 Instrument_2 0.33
17/04/2018 00:07:01 Instrument_3 12.37
Anyone help me please?
Thanks in advance.
Doug
This produces the following sample data pulled from a SQL database:
Time Name Value
17/04/2018 00:01:02 Instrument_1 1.49
17/04/2018 00:01:25 Instrument_2 0.35
17/04/2018 00:01:53 Instrument_3 11.39
17/04/2018 00:06:02 Instrument_1 1.52
17/04/2018 00:06:25 Instrument_2 0.33
17/04/2018 00:07:01 Instrument_3 12.37
17/04/2018 00:11:02 Instrument_1 1.56
17/04/2018 00:11:25 Instrument_2 0.38
17/04/2018 00:11:53 Instrument_3 12.37
17/04/2018 00:16:02 Instrument_1 1.55
17/04/2018 00:16:25 Instrument_2 0.33
17/04/2018 00:16:54 Instrument_3 11.39
17/04/2018 00:21:02 Instrument_1 1.55
17/04/2018 00:21:25 Instrument_2 0.38
17/04/2018 00:21:54 Instrument_3 12.37
17/04/2018 00:26:02 Instrument_1 1.6
17/04/2018 00:26:25 Instrument_2 0.26
17/04/2018 00:26:54 Instrument_3 12.04
17/04/2018 00:31:02 Instrument_1 1.58
17/04/2018 00:31:25 Instrument_2 0.3
17/04/2018 00:31:54 Instrument_3 12.09
I want to chart this information , as a line graph, with date/time on the X axis , showing a separate line for each Instrument Name (Series), with the value as the Y axis.
When I try to create a simple line chart it defaults to creating a single line, with the x axis being date/time and instrument Name, and the y axis being the value
I know this must be easy but I cant figure it out.
I know I could do this if the data was in tabular form but since the date/time values are all different then this is not possible
I would also like to be able to chart for any number of instruments up to 5 going forward.
I tried it as a pivot table/chart but ran into issues there as I have to average the values instead of summing them , and then got blank spaces in the graph where there was a was a time difference in the minutes i.e.
Time Name Value
17/04/2018 00:01:02 Instrument_1 1.49
17/04/2018 00:01:25 Instrument_2 0.35
17/04/2018 00:01:53 Instrument_3 11.39
17/04/2018 00:06:02 Instrument_1 1.52
17/04/2018 00:06:25 Instrument_2 0.33
17/04/2018 00:07:01 Instrument_3 12.37
Anyone help me please?
Thanks in advance.
Doug