<｜begin▁of▁sentence｜>### Instruction:
Given a time series data [3, 5, 1, 3, 8, 7, 2, 5], can you construct and visualise its corresponding Visibility Graph using NetworkX?
### Response:
import networkx as nx
import matplotlib.pyplot as plt

# Time series data
series = [3, 5, 1, 3, 8, 7, 2, 5]

# Generate the visibility graph from the time series
G = nx.visibility_graph(series)

# Draw the graph
nx.draw(G, with_labels=True)
plt.show()
<|EOT|>
