content/shared/influxdb-v2/query-data/execute-queries/data-explorer.md
Build, execute, and visualize your queries in InfluxDB UI's Data Explorer.
Move seamlessly between using the Flux builder or templates and manually editing the query. Choose between visualization types for your query.
Flux is a functional data scripting language designed for querying, analyzing, and acting on time series data. See Get started with Flux to learn more about Flux.
In the navigation menu on the left, click Data Explorer.
{{< nav-icon "data-explorer" >}}
Use the Flux builder in the bottom panel to create a Flux query:
+ Create Bucket to add a new bucket.Alternatively, click Script Editor to manually edit the query. To switch back to the query builder, click Query Builder. Note that your updates from the Script Editor will not be saved.
Use the Functions list to review the available Flux functions. Click a function from the list to add it to your query.
Click Submit (or press Control+Enter) to run your query. You can then preview your graph in the above pane.
To cancel your query while it's running, click Cancel.
To work on multiple queries at once, click the {{< icon "plus" >}} to add another tab.
Select an available visualization types from the dropdown menu in the upper-left:
{{< img-hd src="/img/influxdb/2-0-visualizations-dropdown.png" title="Visualization dropdown" />}}
To open the cell editor overlay, click the gear icon in the upper right of a cell and select Configure. The cell editor overlay opens.
Toggle the View Raw Data {{< icon "toggle" >}} option to see your data in table format instead of a graph. Scroll through raw data using arrows, or click page numbers to find specific tables. Group keys and data types are easily identifiable at the top of each column underneath the headings. Use this option when data can't be visualized using a visualization type.
{{< img-hd src="/img/influxdb/cloud-controls-view-raw-data.png" alt="View raw data" />}}
Click the CSV icon to save the cells contents as a CSV file.
Click the refresh button ({{< icon "refresh" >}}) to manually refresh the dashboard's data.
Select from the time range options in the dropdown menu.
{{< img-hd src="/img/influxdb/2-0-controls-time-range.png" alt="Select time range" />}}
Select Custom Time Range to enter a custom time range with precision up to nanoseconds. The default time range is 5m.
The custom time range uses the selected timezone (local time or UTC).
Click Query Builder to use the builder to create a Flux query. Click Script Editor to manually edit the query.
In Script Editor mode, the following keyboard shortcuts are available:
| Key | Description |
|---|---|
Control + / (⌘ + / on Mac) | Comment/uncomment current or selected lines |
Control + Enter | Submit query |