UNPKG

529 BJavaScriptView Raw
1/**
2 * plotly.js #566 case
3 */
4
5const setup = require('./')
6
7let N = 1e3
8
9let positions = Array(N*2).fill(0).map((v, i) => (Math.random() * 10 - 5) )
10let sizes = Array(N).fill(0).map(v => 10)
11let colors = Array(N*4).fill(0).map((v, i) => !((i + 1) % 4) ? .7 : Math.random())
12let glyphs = Array(N).fill('●')
13let borderWidths = Array(N).fill(.5)
14let borderColors = Array(N*4).fill(0).map((v, i) => !((i+1) % 4) ? .7 : 1)
15
16setup({
17 positions,
18 sizes,
19 colors,
20 glyphs,
21 borderColors,
22 borderWidths
23})