Platform
Resources
Pricing
Sign in
Contact us
Ajay
Workspace
Fork
Published
2 collections
By
Ajay
Edited
Oct 4, 2020
Importers
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
stackOptionSeries
=
d3
.
stack
(
)
.
keys
(
expirations
)
.
order
(
d3
[
order
]
)
.
offset
(
d3
[
offset
]
)
(
data_cast
)
Insert cell
Insert cell
area
=
d3
.
area
(
)
.
x1
(
(
d
,
i
)
=>
x
(
+
d
.
data
.
DT
)
+
x
.
bandwidth
(
)
)
.
x0
(
(
d
,
i
)
=>
x
(
+
d
.
data
.
DT
)
)
.
y0
(
(
d
,
i
)
=>
y
(
d
[
0
]
)
)
.
y1
(
(
d
,
i
)
=>
(
!
d
[
1
]
?
height
-
margin
.
bottom
:
y
(
d
[
1
]
)
)
)
.
curve
(
d3
[
curve
]
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
mutable
selectedData
=
"volume"
Insert cell
Insert cell
Insert cell
Insert cell
getMissingExpirations
(
sampleRollUp
)
.
map
(
x
=>
[
x
,
0
]
)
Insert cell
Insert cell
sampleRollUp
=
rollUpSeries
(
DailyOptionsQuote
[
1
]
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
x
(
dates
[
3
]
)
Insert cell
x
(
data_cast
[
7
]
.
DT
)
Insert cell
Insert cell
Insert cell
Insert cell
y
(
data_cast
[
9
]
.
total
)
Insert cell
Insert cell
Insert cell
color
(
expirations
[
1
]
)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
import
{
radio
}
from
'@jashkenas/inputs'
Insert cell
// viewof offset = radio({
// title: 'Stack Offset',
// description: 'Please select your offset preference',
// options: [
// { label: 'No Offset', value: 'stackOffsetNone' },
// { label: 'Wiggle Offset', value: 'stackOffsetWiggle' }
// ],
// value: 'stackOffsetWiggle'
// })
Insert cell
// html`<div style="display:flex;flex-wrap:wrap; justify-content:space-between;align-items:center;">${viewof curve} ${viewof offset} ${viewof order}${viewof colors}</div>
// <style>
// form{
// flex:1 1;
// height:4px;
// }
// </style>
// // `
Insert cell
// svg
// .selectAll('.button-group')
// .data(["value", 'volume', "open_interest"], (d, i) => i)
// .join('g')
// .attr('class', 'button-group')
// .attr('font-size', 12)
// .attr('stroke', 'black')
// .attr('transform', (d, i) => `translate(${i * 100 + 100},${5})`)
// // .attr('style', 'user-select:none;')
// .call(group =>
// group
// .selectAll('.button-text')
// .data(d => [d])
// .join('text')
// .attr('class', 'button-text')
// .attr('dx', 90 / 2)
// .attr('dy', 5 + 30 / 2)
// .attr('text-anchor', 'middle')
// .text(d => d.replace('_', ' ').toUpperCase())
// )
// .call(group =>
// group
// .selectAll('.button')
// .data(d => [d])
// .join('rect')
// .attr('class', 'button')
// .attr('width', 90)
// .attr('height', 30)
// .style('mix-blend-mode', 'multiply')
// .attr('fill', '#efefef')
// .on('click', function(d, i) {
// mutable selectedData = d;
// svg.selectAll('.button').attr('fill', '#efefef');
// d3.select(this).attr('fill', 'silver');
// svg
// .selectAll('.msg')
// .data([d])
// .join('text')
// .attr('class', 'msg')
// .attr('x', width - 5)
// .attr('y', 5)
// .attr('text-anchor', 'end')
// .text('clicked' + d)
// .attr('dominant-baseline', 'hanging')
// .transition()
// .duration(1000)
// .remove();
// })
// )
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Fork
View
Export
Listed in...
.
Ajay
Historical Options Data
Ajay
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
curve
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
offset
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
order
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
legend
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
colors
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
svg
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
streams
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
stackOptionSeries
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
area
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
expirations
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
dates
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data_cast
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
colorList
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
selectedData
Unpin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
sumON
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
getMissingExpirations
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
parse_and_format_unix
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
rollUpSeries
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sampleRollUp
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
x
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yExtent
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
y
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
color
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xAxis
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yAxis
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
margin
Edit
Pin
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
d3
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML