MCPcopy
hub / github.com/apache/echarts / makeValueData

Function makeValueData

test/tooltipTestHelper.js:76–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

74}
75
76function makeValueData() {
77 var data1 = [];
78 var data2 = [];
79 var data3 = [];
80
81 data1.push(['-', '-']);
82 data2.push(['-', '-']);
83 data3.push(['-', '-']);
84
85 for (var i = 0; i < 5; i++) {
86 data1.push([(Math.random() * 1000).toFixed(2), (-Math.random() - 0.4).toFixed(3)]);
87 data2.push([(Math.random() * 1000).toFixed(2), (Math.random() + 1.8).toFixed(3)]);
88 data3.push([(Math.random() * 1000).toFixed(2), (Math.random() + 0.2).toFixed(3)]);
89 }
90
91 data1.push(['-', '-']);
92 data2.push(['-', '-']);
93 data3.push(['-', '-']);
94
95 for (; i < 10; i++) {
96 data1.push([(Math.random() * 1000).toFixed(2), (-Math.random() - 0.2).toFixed(3)]);
97 data2.push([(Math.random() * 1000).toFixed(2), (Math.random() + 0.3).toFixed(3)]);
98 data3.push([(Math.random() * 1000).toFixed(2), (Math.random() + 0.2).toFixed(3)]);
99 }
100 data1.push(['-', '-']);
101 data2.push(['-', '-']);
102 data3.push(['-', '-']);
103
104 return {data1: data1, data2: data2, data3: data3};
105}
106
107
108function makeTimeData() {

Callers 1

makeValueGridFunction · 0.85

Calls 1

toFixedMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…