Last active
May 13, 2018 03:58
-
-
Save evilnapsis/00e7225db6eaae54a76bddd299671622 to your computer and use it in GitHub Desktop.
Ejemplo de grafica de lineas con Plot.ly
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- 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