ChartDataMappingSuggester
public static class ChartDataMappingSuggesterHeuristic mapping suggester. Given a parsed ChartGuru.ChartTabularData returns a ChartGuru.ChartDataMapping that “does the right thing” for the most common shapes.
Rules (in order):
- If the table has columns
open/high/low/close(case-insensitive), build an OHLC mapping with the first date/category column as X. - X column = first `ChartGuru.ChartColumnType.Date`; else first `ChartGuru.ChartColumnType.Category`; else none (use row index).
- Label column = X column if it's a category, otherwise the first category column.
- If exactly one numeric column exists and a non-X category column has cardinality > 1 and < `ChartGuru.ChartTabularData.RowCount`, use long format with that as `ChartGuru.ChartDataMapping.SeriesByColumn`.
- Otherwise wide format — every numeric column (excluding X) becomes a Y column.
Methods
Section titled “Methods”
Suggest(ChartTabularData)
Section titled “Suggest(ChartTabularData)”public static ChartDataMapping Suggest(ChartTabularData data)No description is available for this member.
Parameters
| Name | Type | Description |
|---|---|---|
data |
ChartGuru.ChartTabularData |
Returns
ChartGuru.ChartDataMapping — No return description is available.