AI & MLLLMOpenAIPython

From a Dataset to Chart Suggestions with LIDA

If I handed an AI tool a table of car data, what would it suggest plotting? I was interested in the question it chose as much as the chart it could draw.

I wrote a short experiment with LIDA’s OpenAI-backed Manager to summarize the table, propose two visualization goals, and turn one of them into a chart request.

Separating the steps

The script starts with data/cars.csv. It gives LIDA’s dataset summary to goals(summary, n=2), then passes goals[0] to the visualization step. The choice of the first goal is simply an index in the script. That is where I could pause, read both suggested questions, and decide which one deserves a chart.

The distinction is useful because each stage can go wrong differently. A column's meaning may be misunderstood before any chart code is produced. A technically valid chart may also answer an unhelpful question.

The LIDA paper, first submitted in March 2023, describes this broader staged approach to visualization generation.

Reviewing the generated analysis

For an actual dataset, I would inspect the proposed goal before the chart. Does it make sense for the units, categories, and time range? Has the model assumed that a code or identifier is a numerical measure?

After generation, I would inspect the data transformation and rendered chart together. Sorting, aggregation, missing values, and axis choices can change the message while leaving the code perfectly runnable.

I have the script for the cars example, but no saved chart from that run. The decision I’d revisit first is which of the two suggested questions to plot.