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: Thu, 16 Oct 2025 03:35:13 GMT
etag: W/"68e952e4-78e9"
expires: Thu, 16 Oct 2025 03:45:13 GMT
last-modified: Fri, 10 Oct 2025 18:39:32 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: 9f4299b181fa912a88c33dc9a895e4d8cb7e7945
x-github-request-id: 8FE8:122D57:1B1CC:264AF:68F067F1
x-origin-cache: HIT
x-proxy-cache: MISS
x-robots-tag: index
x-served-by: cache-bom-vanm7210039-BOM
x-timer: S1760585713.484263,VS0,VE291
x-vercel-cache: MISS
x-vercel-id: bom1::lkjcp-1760585713459-fa95c1ea66f5
content-length: 7962
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. Try Plotly Studio 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);
