The line chart introduced in Databricks 2.66 provides full support for time-series data. The old line chart is deprecated. We recommend that you migrate any visualizations that use the old line chart to the new one.
In the Databricks visualization menu, the new chart is called Line and the old chart is called Line (deprecated):
The following table details the difference between the Line(deprecated) and Line charts:
|Date and timestamp are treated as text||Date and timestamp are supported|
|Key can be of any type||Key can only be date, timestamp, or number|
X-axis is categorical
X-axis is ordered
To migrate a cell that uses the Line(deprecated) chart to the Line chart:
- If the key column is already date, timestamp, or number, there’s nothing to do.
- If the key column is is not a date, timestamp, or number, you must parse the column to a date, timestamp, or number explicitly as demonstrated in the Timestamp Conversion notebook.