MCPcopy Index your code
hub / github.com/plotly/dash / mockDataSimple

Function mockDataSimple

components/dash-table/demo/data.ts:292–311  ·  view source on GitHub ↗
(rows: number)

Source from the content-addressed store, hash-verified

290 ]);
291
292export const mockDataSimple = (rows: number) =>
293 unpackIntoColumnsAndData([
294 {
295 id: 'aaa',
296 name: 'Temperature',
297 type: ColumnType.Numeric,
298 data: gendata(i => i + 1, rows)
299 },
300
301 {
302 id: 'bbb',
303 name: 'Climate',
304 type: ColumnType.Text,
305 presentation: 'dropdown',
306 data: gendata(
307 i => ['Humid', 'Wet', 'Snowy', 'Tropical Beaches'][i % 4],
308 rows
309 )
310 }
311 ]);
312
313export const miniData = unpackIntoColumnsAndData([
314 {

Callers

nothing calls this directly

Calls 2

unpackIntoColumnsAndDataFunction · 0.85
gendataFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…