Editing in SQL and Interactive Modes


Prevent losing changes in Interactive or SQL Mode by making sure to only save your chart in the Mode you will be working with going forward.

You can always clone your chart if you would like to save a chart in both modes.

Here is a breakdown of how running queries and saving your charts works in Chartio:

If you run the query in Interactive Mode, it will run the query based on the column(s) selected in the drag and drop interface. If you switch to SQL Mode, add text to the query, and run the query in SQL Mode, it will use the SQL Mode query only. If you then switch to Interactive Mode and run the query, only the drag and drop query will run.

If you then switch back to SQL Mode, you will still be able to view any changes you’ve made to the SQL BUT if you save your chart, it will be saved in the mode you are currently viewing. If you want to keep your SQL script, you must save your chart while viewing in SQL Mode. This will erase your Interactive Mode query but keep the SQL script. If you save while in Interactive Mode, the SQL Mode query will be overwritten with the current drag and drop query.

If you accidentally save your chart in Interactive Mode instead of SQL Mode, you may be able to retrieve your previously saved query by clicking on the Query History button on the top right hand side of your SQL Mode query.

Query History

Related Charts Help Articles

See more