---
name: ViewConfig
lang: cpp
domain: viz
version: "1.0.0"
algebraic: product
definition: |
  struct ViewConfig {
      std::string                 x_col;
      std::vector<std::string>    y_cols;
      std::string                 size_col;
      std::string                 cat_col;
      unsigned int                primary_color;
      int                         hist_bins;
      float                       pie_radius;
      bool                        show_legend;
      bool                        show_markers;
      bool                        locked;
      mutable bool                fit_request;
  };
description: "Overrides manuales de auto-detect para ViewMode. Cols vacias dejan al dispatcher elegir. primary_color=0 usa palette ImPlot."
tags: [tql, viz, config, product-type]
uses_types: []
file_path: "cpp/functions/core/data_table_types.h"
---

## Notas

`fit_request` mutable bool consumido por `viz::render` (one-shot trigger para `ImPlot::SetNextAxesToFit`). `locked` deshabilita pan/zoom del usuario.
