Repository: h2oai/wave
File: ui/src/plot.tsx (TypeScript)

Code before:
  x_scale?: 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
  /** X axis title. */
  x_title?: S;
  /** Y field or value. */
  y?: V;
  /** Y base field or value. */
  y0?: V;
  /** Y bin lower bound field or value. For histograms. */
  y1?: V;
  /** Y bin upper bound field or value. For histograms. */
  y2?: V;
  /** Y axis scale minimum. */
  y_min?: F;
  /** Y axis scale maximum. */
  y_max?: F;
  /** Whether to nice Y axis scale ticks. */
  y_nice?: B;
  /** Y axis scale type. */
  y_scale?: 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
  /** Y axis title. */
  y_title?: S;
  /** Mark color field or value. */
  color?: S;
  /** Mark color range for multi-series plots. A string containing space-separated colors, e.g. `'#fee8c8 #fdbb84 #e34a33'` */
  color_range?: S;
  /** Mark domain for color range. A list of values in a field to match color range, e.g. `['high', 'medium', 'low']` */
  color_domain?: S[];
  /** Mark shape field or value for `point` mark types. Possible values are 'circle', 'square', 'bowtie', 'diamond', 'hexagon', 'triangle', 'triangle-down', 'cross', 'tick', 'plus', 'hyphen', 'line'. */
  shape?: S;
  /** Mark shape range for multi-series plots using `point` mark types. A string containing space-separated shapes, e.g. `'circle square diamond'` */
  shape_range?: S;
  /** Mark size field or value. */
  size?: V;
  /** Mark size range. A string containing space-separated integers, e.g. `'4 30'` */
  size_range?: S;
  /** Field to stack marks by, or 'auto' to infer. */
  stack?: S;
  /** Field to dodge marks by, or 'auto' to infer. */
  dodge?: S;
  /** Curve type for `line` and `area` mark types. */
  curve?: 'none' | 'smooth' | 'step-before' | 'step' | 'step-after';
  /** Mark fill color. */
  fill_color?: S;
  /** Mark fill opacity. */
  fill_opacity?: F;
  /** Mark stroke color. */
  stroke_color?: S;
  /** Mark stroke opacity. */
  stroke_opacity?: F;
  /** Mark stroke size. */
  stroke_size?: F;

Review comment (suggestion):
```suggestion
  /** The unique values in the data (labels or categories or classes) to map colors to, e.g. `['high', 'medium', 'low']`. If this is not provided, the unique values are automatically inferred from the `color` attribute. */
```

Code after:
  x_scale?: 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
  /** X axis title. */
  x_title?: S;
  /** Y field or value. */
  y?: V;
  /** Y base field or value. */
  y0?: V;
  /** Y bin lower bound field or value. For histograms. */
  y1?: V;
  /** Y bin upper bound field or value. For histograms. */
  y2?: V;
  /** Y axis scale minimum. */
  y_min?: F;
  /** Y axis scale maximum. */
  y_max?: F;
  /** Whether to nice Y axis scale ticks. */
  y_nice?: B;
  /** Y axis scale type. */
  y_scale?: 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
  /** Y axis title. */
  y_title?: S;
  /** Mark color field or value. */
  color?: S;
  /** Mark color range for multi-series plots. A string containing space-separated colors, e.g. `'#fee8c8 #fdbb84 #e34a33'` */
  color_range?: S;
  /** The unique values in the data (labels or categories or classes) to map colors to, e.g. `['high', 'medium', 'low']`. If this is not provided, the unique values are automatically inferred from the `color` attribute. */
  color_domain?: S[];
  /** Mark shape field or value for `point` mark types. Possible values are 'circle', 'square', 'bowtie', 'diamond', 'hexagon', 'triangle', 'triangle-down', 'cross', 'tick', 'plus', 'hyphen', 'line'. */
  shape?: S;
  /** Mark shape range for multi-series plots using `point` mark types. A string containing space-separated shapes, e.g. `'circle square diamond'` */
  shape_range?: S;
  /** Mark size field or value. */
  size?: V;
  /** Mark size range. A string containing space-separated integers, e.g. `'4 30'` */
  size_range?: S;
  /** Field to stack marks by, or 'auto' to infer. */
  stack?: S;
  /** Field to dodge marks by, or 'auto' to infer. */
  dodge?: S;
  /** Curve type for `line` and `area` mark types. */
  curve?: 'none' | 'smooth' | 'step-before' | 'step' | 'step-after';
  /** Mark fill color. */
  fill_color?: S;
  /** Mark fill opacity. */
  fill_opacity?: F;
  /** Mark stroke color. */
  stroke_color?: S;
  /** Mark stroke opacity. */
  stroke_opacity?: F;
  /** Mark stroke size. */
  stroke_size?: F;