Skip to content

Commit

Permalink
✨ Add bubbleChart example
Browse files Browse the repository at this point in the history
  • Loading branch information
apertureless committed Sep 8, 2016
1 parent 776f397 commit a7776f8
Showing 1 changed file with 52 additions and 0 deletions.
52 changes: 52 additions & 0 deletions examples/BubbleExample.js
Original file line number Diff line number Diff line change
@@ -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
}
]
}
]
})
}
})

0 comments on commit a7776f8

Please sign in to comment.