CARVIEW |
Select Language
HTTP/2 200
accept-ranges: bytes
access-control-allow-origin: *
age: 0
cache-control: max-age=600
content-encoding: gzip
content-type: text/html; charset=utf-8
date: Wed, 30 Jul 2025 23:33:22 GMT
etag: W/"687e6266-7433"
expires: Wed, 30 Jul 2025 23:43:22 GMT
last-modified: Mon, 21 Jul 2025 15:53:10 GMT
server: Vercel
strict-transport-security: max-age=63072000
vary: Accept-Encoding
via: 1.1 varnish
x-cache: MISS
x-cache-hits: 0
x-fastly-request-id: 8881b188d85b9e43c6a61aa320886883b2d53460
x-github-request-id: A3DE:27CBBA:A3D6:F2BD:688AABC0
x-origin-cache: HIT
x-proxy-cache: MISS
x-robots-tag: index
x-served-by: cache-bom-vanm7210080-BOM
x-timer: S1753918402.075349,VS0,VE214
x-vercel-cache: MISS
x-vercel-id: bom1::5tpvs-1753918402057-f9920f900b28
content-length: 7853
Inset plots in JavaScript
Inset Plots in JavaScript
How to make an inset graph in D3.js-based javascript charts.
Plotly Studio: Transform any dataset into an interactive data application in minutes with AI. Sign up for early access now.
var trace1 = {
x: [1, 2, 3],
y: [4, 3, 2],
type: 'scatter'
};
var trace2 = {
x: [20, 30, 40],
y: [30, 40, 50],
xaxis: 'x2',
yaxis: 'y2',
type: 'scatter'
};
var data = [trace1, trace2];
var layout = {
yaxis2: {
domain: [0.6, 0.95],
anchor: 'x2'
},
xaxis2: {
domain: [0.6, 0.95],
anchor: 'y2'
}
};
Plotly.newPlot('myDiv', data, layout);
