SmartChartAdapter
Builds a chart from unstructured data, choosing a sensible series and layout for you.
Attaches to Chart
Give the adapter a description and some raw figures and it produces a populated Chart control — picking the chart type, series and axes that fit the data.
It removes the boilerplate of binding and configuring a chart by hand when you just want to see the shape of the numbers.
Descriptions can reference the data loosely — totals by month, share by region — and the adapter resolves them against the figures you pass. Regenerating with a different request is instant, which makes exploration cheap.
What it gives you
- Generates chart series from unstructured input.
- Selects an appropriate visualization automatically.
- Drives the standard Wisej.NET Chart control.
Use it for
- Instant visuals from pasted figures
- Dashboards that respond to plain-language requests
- Quick comparisons during data reviews
Like every adapter, it runs through a SmartHub and inherits its SmartEndpoint — switching the model or provider never changes this code.
var hub = new SmartHub(this) { Endpoint = endpoint };
var chart = new SmartChartAdapter { Chart = chart1 };
await chart.RunAsync(
"Monthly revenue: Jan 12k, Feb 15k, Mar 9k, Apr 21k");