Syncfusion Feedback


Overview

Vue Bubble Chart is like a scatter chart, but allows you to visualize data in 3 dimensions. The size of the bubble is determined based on the third parameter.


Customizing each point in bubble

Appearance of each data point in a bubble chart can be customized using point render event to differentiate each point based on the size.


Data label

Data labels display information about data points. Add a template to display data labels with HTML elements such as images, DIV, and spans for more informative data labels. You can rotate a data label by its given angle.


Vue Bubble Chart Code Example

Easily get started with Vue Bubble Chart using a few simple lines of HTML and JS code example as demonstrated below. Also explore our Vue Bubble Chart Example that shows you how to render and configure the chart.

  1. <!DOCTYPE html>
  2. <html>
  3.  
  4. <body>
  5. <div id="app"></div>
  6. </body>
  7.  
  8. </html>
  1. <template>
  2. <div id="app">
  3. <ejs-chart id="container" :primaryXAxis='primaryXAxis'>
  4. <e-series-collection>
  5. <e-series :dataSource='seriesData' type='Bubble' xName='x' yName='y'> </e-series>
  6. </e-series-collection>
  7. </ejs-chart>
  8. </div>
  9. </template>
  10. <script>
  11. import { ChartPlugin, BubbleSeries, Category } from "@syncfusion/ej2-charts";
  12. Vue.use(ChartPlugin);
  13. export default {
  14. data() {
  15. return {
  16. seriesData: [
  17. { x: 1, y: 45, text: 'USA', fill: '#00226C', size: 1.347 },
  18. { x: 2, y: 20, text: 'AUS', fill: '#0450C2', size: 1 },
  19. { x: 3, y: 56, text: 'CHN', fill: '#0073DC', size: 0.01 },
  20. { x: 4, y: 30, text: 'IND', fill: '#0D98FF', size: 0.7 },
  21. { x: 5, y: 13, text: 'JPN', fill: '#9CD9FF', size: 0.333 },
  22. { x: 6, y: 45, text: 'UK', fill: '#0450C2', size: 1 }
  23. ],
  24. primaryXAxis: {
  25. },
  26. };
  27. },
  28. provide: {
  29. chart: [BubbleSeries, Category]
  30. }
  31. };
  32. </script>

Learning Resources

UG

Bubble Chart User Guide

Learn the available options to customize Vue bubble chart.

API

Bubble Chart API Reference

Explore the Vue bubble chart APIs.

90+ VUE UI COMPONENTS

Scroll up icon
Chat with us