# chart-bubble

> Bubble chart comparing internet adoption and growth for global markets.

**Framework:** react  **Component:** Chart  **Variant:** bubble

## Get this item

**If you are an agent, fetch the JSON.** Source is inlined, so one request is enough and no tooling is required:

```
GET https://ai.syncfusion.com/r/react/js/chart-bubble.json
```

**Install Package(s)**

```bash
npm install @syncfusion/ej2-react-charts
```

**Notes**

- Syncfusion release: 2026 Volume 3 (v35.1.37)
- The Syncfusion package is licensed. The composition in this file is source you own and edit. See https://ai.syncfusion.com/licensing.md

## Source files

### src/components/chart-bubble/Chart.jsx

```jsx
import { ChartComponent, SeriesCollectionDirective, SeriesDirective, Inject, BubbleSeries, Tooltip, Legend, DataLabel } from '@syncfusion/ej2-react-charts';

const data = [
  { x: 92.2, y: 7.8, size: 1.41, country: 'China', text: 'China', region: 'Asia', tooltip: 'China' },
  { x: 74.0, y: 6.5, size: 1.45, country: 'India', text: 'India', region: 'Asia', tooltip: 'India' },
  { x: 90.4, y: 6.0, size: 0.28, country: 'Indonesia', text: 'Indonesia', region: 'Asia', tooltip: 'Indonesia' },
  { x: 99.4, y: 2.2, size: 0.34, country: 'United States', text: 'US', region: 'North America', tooltip: 'United States' },
  { x: 88.6, y: 1.3, size: 0.21, country: 'Brazil', text: 'Brazil', region: 'South America', tooltip: 'Brazil' },
  { x: 99.0, y: 0.7, size: 0.084, country: 'Germany', text: 'Germany', region: 'Europe', tooltip: 'Germany' },
  { x: 72.0, y: 2.0, size: 0.114, country: 'Egypt', text: 'Egypt', region: 'Africa', tooltip: 'Egypt' },
  { x: 99.6, y: 3.4, size: 0.144, country: 'Russia', text: 'Russia', region: 'Europe', tooltip: 'Russia' }
];

const Bubble = () => {
  return (
    <div className='control-pane'>
      <div className='control-section'>
        <ChartComponent
          id='country-development-chart'
          style={{ textAlign: 'center' }}
          primaryXAxis={{ valueType: 'Double', minimum: 60, maximum: 100, title: 'Internet Users (%)', majorGridLines: { width: 0 } }}
          primaryYAxis={{ title: 'GDP Growth (%)', minimum: 0, maximum: 10, interval: 2, majorGridLines: { width: 1 } }}
          title='Global Economic Growth by Country'
          tooltip={{ enable: true, shared: false, format: '${point.x} : <b>${point.y}</b>' }}
          legendSettings={{ visible: true, position: 'Bottom' }}
          width='100%'
          height='500px'
        >
          <Inject services={[BubbleSeries, Legend, Tooltip, DataLabel]} />
          <SeriesCollectionDirective>
            <SeriesDirective dataSource={data} xName='x' yName='y' size='size' bubbleSizeRatio={1.5} name='Country' type='Bubble' pointColorMapping='region' />
          </SeriesCollectionDirective>
        </ChartComponent>
      </div>
    </div>
  );
};

export default Bubble;

```
