Skip to main content

function line

Constructs a customizable line chart. Args:
  • table: The table containing data for the chart.
  • x: Column name for the x-axis values.
  • y: Column name for the y-axis values.
  • stroke: Column name to differentiate line strokes (e.g., for grouping lines).
  • title: Title of the chart.
  • split_table: Whether the table should be split into a separate section in the W&B UI. If True, the table will be displayed in a section named “Custom Chart Tables”. Default is False.
Returns:
  • CustomChart: A custom chart object that can be logged to W&B. To log the chart, pass it to wandb.log().
Example: