Skip to content

log

Print the current data in the Data Transform flow to the console for developers to debug the data processing process.

Getting Started

const data = [
  { a: 1, b: 2, c: 3 },
  { a: 4, b: 5, c: 6 },
];

chart.options({
  type: 'view',
  data: {
    type: 'inline',
    value: data,
    transform: [
      { type: 'slice', start: 1 },
      { type: 'log' },
      { type: 'filter', callback: (d) => d.a < 3 },
    ],
  },
});

After adding the log above, it will print the data processed by slice, and this data will be used as the input for the next transform filter.

© Copyright 2026 Ant Group Co., Ltd..备案号:京ICP备15032932号-38
Site search
Documentation and examplesType to start searching

Search documentation, APIs, and examples

↑↓Select↵OpenEscClose