Skip to content

Instantly share code, notes, and snippets.

@sudo-panda
Created March 23, 2020 16:50
Show Gist options
  • Select an option

  • Save sudo-panda/1d0d3393366b258c11b4c6e15532a8b1 to your computer and use it in GitHub Desktop.

Select an option

Save sudo-panda/1d0d3393366b258c11b4c6e15532a8b1 to your computer and use it in GitHub Desktop.
Plot.ly json file for testing its json editor
{
data: [{
"meta": {
"columnNames": {
"x": "A",
"y": "B",
"z": "C"
}
},
"mode": "markers",
"type": "scatter3d",
"x": ["1", "1", "0"],
"y": ["1", "0", "1"],
"z": ["0", "1", "1"],
"marker": {
"color": "#63fa83"
},
"opacity": 1
}],
layout: {
"scene": {
"camera": {
"up": {
"x": 0,
"y": 0,
"z": 1
},
"eye": {
"x": 2.027101514461225,
"y": 0.9983256679413834,
"z": 0.6635769950054669
},
"center": {
"x": 0,
"y": 0,
"z": 0
},
"projection": {
"type": "perspective"
}
},
"domain": {
"x": [0, 1],
"y": [0, 1]
},
"aspectmode": "auto",
"aspectratio": {
"x": 1,
"y": 1,
"z": 1
}
},
"title": {
"text": ""
},
"xaxis": {
"range": [-1, 6],
"autorange": true
},
"yaxis": {
"range": [-1, 4],
"autorange": true
},
"autosize": true,
"template": {
"data": {
"bar": [{
"type": "bar",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"table": [{
"type": "table",
"cells": {
"fill": {
"color": "#EBF0F8"
},
"line": {
"color": "white"
}
},
"header": {
"fill": {
"color": "#C8D4E3"
},
"line": {
"color": "white"
}
}
}],
"carpet": [{
"type": "carpet",
"aaxis": {
"gridcolor": "#C8D4E3",
"linecolor": "#C8D4E3",
"endlinecolor": "#2a3f5f",
"minorgridcolor": "#C8D4E3",
"startlinecolor": "#2a3f5f"
},
"baxis": {
"gridcolor": "#C8D4E3",
"linecolor": "#C8D4E3",
"endlinecolor": "#2a3f5f",
"minorgridcolor": "#C8D4E3",
"startlinecolor": "#2a3f5f"
}
}],
"mesh3d": [{
"type": "mesh3d",
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}],
"contour": [{
"type": "contour",
"colorbar": {
"ticks": "",
"outlinewidth": 0
},
"autocolorscale": true
}],
"heatmap": [{
"type": "heatmap",
"colorbar": {
"ticks": "",
"outlinewidth": 0
},
"autocolorscale": true
}],
"scatter": [{
"type": "scatter",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"surface": [{
"type": "surface",
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}],
"heatmapgl": [{
"type": "heatmapgl",
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}],
"histogram": [{
"type": "histogram",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"parcoords": [{
"line": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
},
"type": "parcoords"
}],
"scatter3d": [{
"type": "scatter3d",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"scattergl": [{
"type": "scattergl",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"choropleth": [{
"type": "choropleth",
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}],
"scattergeo": [{
"type": "scattergeo",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"histogram2d": [{
"type": "histogram2d",
"colorbar": {
"ticks": "",
"outlinewidth": 0
},
"autocolorscale": true
}],
"scatterpolar": [{
"type": "scatterpolar",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"contourcarpet": [{
"type": "contourcarpet",
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}],
"scattercarpet": [{
"type": "scattercarpet",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"scattermapbox": [{
"type": "scattermapbox",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"scatterpolargl": [{
"type": "scatterpolargl",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"scatterternary": [{
"type": "scatterternary",
"marker": {
"colorbar": {
"ticks": "",
"outlinewidth": 0
}
}
}],
"histogram2dcontour": [{
"type": "histogram2dcontour",
"colorbar": {
"ticks": "",
"outlinewidth": 0
},
"autocolorscale": true
}]
},
"layout": {
"geo": {
"bgcolor": "white",
"showland": true,
"lakecolor": "white",
"landcolor": "white",
"showlakes": true,
"subunitcolor": "#C8D4E3"
},
"font": {
"color": "#2a3f5f"
},
"polar": {
"bgcolor": "white",
"radialaxis": {
"ticks": "",
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8"
},
"angularaxis": {
"ticks": "",
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8"
}
},
"scene": {
"xaxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"zerolinecolor": "#EBF0F8",
"showbackground": true,
"backgroundcolor": "white"
},
"yaxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"zerolinecolor": "#EBF0F8",
"showbackground": true,
"backgroundcolor": "white"
},
"zaxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"gridwidth": 2,
"linecolor": "#EBF0F8",
"zerolinecolor": "#EBF0F8",
"showbackground": true,
"backgroundcolor": "white"
}
},
"title": {
"x": 0.05
},
"xaxis": {
"ticks": "",
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"automargin": true,
"zerolinecolor": "#EBF0F8",
"zerolinewidth": 2
},
"yaxis": {
"ticks": "",
"gridcolor": "#EBF0F8",
"linecolor": "#EBF0F8",
"automargin": true,
"zerolinecolor": "#EBF0F8",
"zerolinewidth": 2
},
"ternary": {
"aaxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6"
},
"baxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6"
},
"caxis": {
"ticks": "",
"gridcolor": "#DFE8F3",
"linecolor": "#A2B1C6"
},
"bgcolor": "white"
},
"colorway": ["#636efa", "#EF553B", "#00cc96", "#ab63fa", "#19d3f3",
"#e763fa", "#fecb52", "#ffa15a", "#ff6692", "#b6e880"
],
"hovermode": "closest",
"colorscale": {
"diverging": [
[0, "#8e0152"],
[0.1, "#c51b7d"],
[0.2, "#de77ae"],
[0.3, "#f1b6da"],
[0.4, "#fde0ef"],
[0.5, "#f7f7f7"],
[0.6, "#e6f5d0"],
[0.7, "#b8e186"],
[0.8, "#7fbc41"],
[0.9, "#4d9221"],
[1, "#276419"]
],
"sequential": [
[0, "#0508b8"],
[0.0893854748603352, "#1910d8"],
[0.1787709497206704, "#3c19f0"],
[0.2681564245810056, "#6b1cfb"],
[0.3575418994413408, "#981cfd"],
[0.44692737430167595, "#bf1cfd"],
[0.5363128491620112, "#dd2bfd"],
[0.6256983240223464, "#f246fe"],
[0.7150837988826816, "#fc67fd"],
[0.8044692737430168, "#fe88fc"],
[0.8938547486033519, "#fea5fd"],
[0.9832402234636871, "#febefe"],
[1, "#fec3fe"]
],
"sequentialminus": [
[0, "#0508b8"],
[0.0893854748603352, "#1910d8"],
[0.1787709497206704, "#3c19f0"],
[0.2681564245810056, "#6b1cfb"],
[0.3575418994413408, "#981cfd"],
[0.44692737430167595, "#bf1cfd"],
[0.5363128491620112, "#dd2bfd"],
[0.6256983240223464, "#f246fe"],
[0.7150837988826816, "#fc67fd"],
[0.8044692737430168, "#fe88fc"],
[0.8938547486033519, "#fea5fd"],
[0.9832402234636871, "#febefe"],
[1, "#fec3fe"]
]
},
"plot_bgcolor": "white",
"paper_bgcolor": "white",
"shapedefaults": {
"line": {
"width": 0
},
"opacity": 0.4,
"fillcolor": "#506784"
},
"annotationdefaults": {
"arrowhead": 0,
"arrowcolor": "#506784",
"arrowwidth": 1
}
},
"themeRef": "PLOTLY_WHITE"
}
},
frames: [],
config: {
"showLink": true,
"linkText": "Export to plot.ly",
"mapboxAccessToken": "pk.eyJ1IjoiY2hyaWRkeXAiLCJhIjoiY2lxMnVvdm5iMDA4dnhsbTQ5aHJzcGs0MyJ9.X9o_rzNLNesDxdra4neC_A"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment