data: [ ...staticOptions.series[0].data[0], y: data ? Math.round((data.status[0][1] * 100) / data.count) : 0, }, data: [ ...staticOptions.series[1].data[0], y: data ? Math.round((data.status[1][1] * 100) / data.count) : 0, }, data: [ ...staticOptions.series[2].data[0], y: (data && data.status[2]) ? Math.round((data.status[2][1] * 100) / data.count) : 0, },
for (const commentItem of comments.data) { const comment = {}; comment.content = Buffer.from(commentItem.content, 'base64').toString();
const parsedData = parseStoreStatsReferrers( validData ); expect( parsedData ).toHaveLength( validData.data.length ); firstRecord.data.forEach( ( d ) => { expect( d[ fields[ 0 ] ] ).toBeDefined(); expect( d[ fields[ 1 ] ] ).toBeDefined(); firstRecord.data.forEach( ( d, idx ) => { expect( d.color ).toBe( validData.data[ 0 ].data[ idx ][ 0 ] ); expect( d.age ).toBe( validData.data[ 0 ].data[ idx ][ 1 ] ); } );
return gplay.reviews({ appId: 'com.dxco.pandavszombies' }) .then((reviews) => { reviews.data.map(assertValid); }); }); }) .then((reviews) => { reviews.data.map(assertValid); }); }); }) .then((reviews) => { reviews.data.map(assertValid); }); }); return gplay.reviews({ appId: 'com.dxco.pandavszombies', lang: 'ja' }) .then((reviews) => { reviews.data.map(assertValid); }); }); }) .then((reviews) => { reviews.data.map(assertValid); assert.equal(reviews.data.length, 150); assert.isNotNull(reviews.nextPaginationToken);
/** * Update notary data * * @param {array} ntyData - The notary data array * @param {object} newNtyData - A notary data object * * @return {array} - The updated notary data array */ var updateNotaryData = function updateNotaryData(ntyData, newNtyData) { ntyData.data.push(newNtyData.data[0]); return ntyData; }
getSuggestions(value) { const inputValue = value.trim().toLowerCase(); const inputLength = inputValue.length; return inputLength === 0 ? [] : List.data.filter( function(items){ return items.description.slice(0,inputLength).toLowerCase()=== inputValue } ); }
getSuggestions(value) { const inputValue = value.trim(); const inputLength = inputValue.length; return inputLength === 0 ? [] : List.data.filter(function(items){return items.item_number.slice(0,inputLength)=== inputValue}) }
getTask() { return this.task.data; }
getTargetComponentId(name) { let comps = this.targetComponents.data.components.filter((comp) => { return comp.name == name }) return comps[0].id }
socket.on('sonar_data', val => { if (val.angle && val.value) { const set = data.datasets[SET_IX].data; const ix = Math.round(val.angle/STEP); //console.log(val.angle, val.value, ix, set[ix]) set[ix] = val.value; window.requestAnimationFrame(render); } else if (val === 'next_set') { if (++SET_IX > (MAX_SETS - 1)) { SET_IX = 0; } } });
randomData(){ const series = chartData.series[0].data.map(e => rand(e)); chartData.series[0].data = series; this.setState({ chartData }); }
// Save sample data to component state componentDidMount() { this.setState({ orderedtickets: sampleData.data }); }
data: [ ...staticOptions.series[0].data[0], y: data ? Math.round((data.status[0][1] * 100) / data.count) : 0, }, data: [ ...staticOptions.series[1].data[0], y: data ? Math.round((data.status[1][1] * 100) / data.count) : 0, }, data: [ ...staticOptions.series[2].data[0], y: (data && data.status[2]) ? Math.round((data.status[2][1] * 100) / data.count) : 0, },
socket.on('sonar_data', val => { if (val.angle && val.value) { const set = data.datasets[SET_IX].data; const ix = Math.round(val.angle/STEP); //console.log(val.angle, val.value, ix, set[ix]) set[ix] = val.value; window.requestAnimationFrame(render); } else if (val === 'next_set') { if (++SET_IX > (MAX_SETS - 1)) { SET_IX = 0; } } });