Show string values in time series graph

How does this look with Time Series?

python script used to parse your “csv” to reiterate the importance of providing usable data. Help us help you :wink:

import pandas as pd
from influxdb_client import InfluxDBClient, Point, WritePrecision, WriteOptions
from influxdb_client.client.write_api import SYNCHRONOUS

# You can generate an API token from the "API Tokens Tab" in the UI
token =INFLUX_TOKEN

org = "Research"
bucket = "snmp"
filename = 'write_temperatures.csv'

"""
Write data into InfluxDB
"""
client = InfluxDBClient(url="http://localhost:8086", token=token, org=org, debug=True)
write_api = client.write_api(write_options=SYNCHRONOUS)  

col_list = ["time","temp_string"]
df = pd.read_csv("write_temperatures.csv", usecols=col_list)

for index, row in df.iterrows():
    temp_string =  float(row['temp_string'])
    temp_time = int(row['time'])

    point = Point("temp-analysis") \
            .tag("type", "temp-every-two-minutes") \
            .field("temp_string", temp_string) \
            .time(temp_time, WritePrecision.NS)

    write_api.write(bucket, org, point) 
write_api.__del__()

"""
Querying max value of CBOE Volatility Index
"""
""" query = 'from(bucket:"snmp")' \
        ' |> range(start: 0, stop: now())' \
        ' |> filter(fn: (r) => r._measurement == "temp-analysis")' \
        ' |> max()'
result = client.query_api().query(org=org, query=query) """

"""
Processing results
"""
""" print()
print("=== results ===")
print()
for table in result:
    for record in table.records:
        print('max {0:5} = {1}'.format(record.get_field(), record.get_value())) """


"""
Close client
"""
client.__del__()