---
title: "custom"
description: "custom"
language: "en"
canonical: "https://g2.antv.antgroup.com/en/manual/core/data/custom/"
version: "5.4.8"
---

Custom data processing logic that allows users to define their own operation methods.

## Getting Started

```ts
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: 'custom',
        callback: (data) => data.map((d) => ({ ...d, sum: d.a + d.b + d.c })),
      },
    ],
  },
});
```

## Options

| Property | Description                | Type                     | Default |
| -------- | -------------------------- | ------------------------ | ------- |
| callback | Custom processing function | `(data: any[]) => any[]` |         |
