Skip to content

Instantly share code, notes, and snippets.

@evilnapsis
Last active May 13, 2018 03:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save evilnapsis/00e7225db6eaae54a76bddd299671622 to your computer and use it in GitHub Desktop.
Save evilnapsis/00e7225db6eaae54a76bddd299671622 to your computer and use it in GitHub Desktop.
Ejemplo de grafica de lineas con Plot.ly
<!-- Powered by http://evilnapsis.com -->
<!DOCTYPE html>
<html>
<head>
<title>Ejemplo con Plot.Ly</title>
<!-- <script src="https://cdn.plot.ly/plotly-latest.min.js"></script> -->
<script src="dist/plotly.min.js"></script>
</head>
<body>
<h1>Ejemplo Plot.ly</h1>
<div id="chart"></div>
<script>
var data1 = {
x: [1, 2, 3, 4],
y: [1, 2, 3, 4],
type: 'lines',
name:'Datos 1',
line:{ width: 5, color:'red',dash:'solid'},
marker:{ size: 10, color:'blue'}
};
var data = [data1];
Plotly.newPlot('chart', data,{title:'Grafica de Ejemplo con Plot.ly'});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment