forked from chinmaymk/angular-charts
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdata_formats.js
More file actions
64 lines (62 loc) · 741 Bytes
/
data_formats.js
File metadata and controls
64 lines (62 loc) · 741 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
// chart config
config = {
title : 'Chart',
tooltips: true,
labels : true,
mouseover: function() {},
mouseout: function() {},
click: function() {},
legend: {
display: true,
position: 'left, right, top, bottom'
}
}
//all charts data format
//pie, bar, line, scatter, area
data = {
series: [{
title: 'Computers'
},
{
title: 'Mobiles'
}
{
title: 'Chairs'
}
{
title: 'Laptops'
}
{
title: 'Keyboards'
}],
data :[{
y: [123],
x: 'title',
tooltip: '123'
},
{
y: [43],
x: 'title',
tooltip: '43'
},
{
y: [234],
x: 'title',
tooltip: '234'
},
{
y: [140],
x: 'title',
tooltip: '140'
},
{
y: [456],
x: 'title',
tooltip: '456'
},
{
y: [170],
x: 'title',
tooltip: '170'
}]
}