From a7776f840759a9a313b5990f8c7f7609946805b5 Mon Sep 17 00:00:00 2001 From: Jakub Juszczak Date: Thu, 8 Sep 2016 12:03:15 +0200 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Add=20bubbleChart=20example?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/BubbleExample.js | 52 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 examples/BubbleExample.js diff --git a/examples/BubbleExample.js b/examples/BubbleExample.js new file mode 100644 index 0000000..3833ec9 --- /dev/null +++ b/examples/BubbleExample.js @@ -0,0 +1,52 @@ +import BubbleChart from '../BaseCharts/Bubble' + +export default BubbleChart.extend({ + ready () { + this.render({ + datasets: [ + { + label: 'Data One', + backgroundColor: '#f87979', + data: [ + { + x: 20, + y: 25, + r: 5 + }, + { + x: 40, + y: 10, + r: 10 + }, + { + x: 30, + y: 22, + r: 30 + } + ] + }, + { + label: 'Data Two', + backgroundColor: '#7C8CF8', + data: [ + { + x: 10, + y: 30, + r: 15 + }, + { + x: 20, + y: 20, + r: 10 + }, + { + x: 15, + y: 8, + r: 30 + } + ] + } + ] + }) + } +})