MCPcopy
hub / github.com/TargetProcess/tauCharts / getSpec

Function getSpec

examples/specs/update-config.js:39–83  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

37 }
38
39 function getSpec() {
40 return {
41 type: 'line',
42 dimensions: {
43 'Owner': {
44 type: 'category',
45 scale: 'ordinal'
46 },
47 'End Date': {
48 type: 'measure',
49 scale: 'time'
50 },
51 'Project': {
52 type: 'category',
53 scale: 'ordinal'
54 },
55 'Cycle Time': {
56 type: 'measure',
57 scale: 'linear'
58 }
59 },
60 identity: 'id',
61 color: 'Owner',
62 x: [
63 'Owner',
64 'End Date'
65 ],
66 y: [
67 'Project',
68 'Cycle Time'
69 ],
70 data: getData(),
71 settings: {
72 utcTime: true,
73 },
74 plugins: [
75 Taucharts.api.plugins.get('diff-tooltip')(),
76 Taucharts.api.plugins.get('legend')(),
77 Taucharts.api.plugins.get('crosshair')(),
78 Taucharts.api.plugins.get('floating-axes')(),
79 Taucharts.api.plugins.get('export-to')(),
80 updateSpecPlugin()
81 ]
82 }
83 }
84
85 function getData() {
86 return [

Callers 2

update-config.jsFile · 0.85
updateSpecPluginFunction · 0.85

Calls 2

getDataFunction · 0.85
updateSpecPluginFunction · 0.85

Tested by

no test coverage detected