Skip to content

Instantly share code, notes, and snippets.

@JerryWiltz
Last active May 29, 2019 00:57
Show Gist options
  • Save JerryWiltz/294f776388078146b99d5c2ef2f8f393 to your computer and use it in GitHub Desktop.
Save JerryWiltz/294f776388078146b99d5c2ef2f8f393 to your computer and use it in GitHub Desktop.
nP.lineChart default display
license: gpl-3.0
height: 600
scrolling: yes
border: yes

nPort is a microwave analysis package based on JavaScript. The package is nP.js. lineChart is part of nP.js and it renders charts or plots of circuit performance. D3 is the graphics engine for lineChart and is part of nP.js as there is no call for D3 anywhere. Here is the default lineChart(), it generates an <svg> that has 400 width and 300 height. To turn into PNG click on the light blue square at the upper right corner of the chart. You can turn it into a PNG for a Copy-Paste into another document or a Save-As file. To turn into PNG click on the square. The PNG replaces the svg. Move the cursor over any part of the image to copy and paste or save as, as usual.

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>Default lineChart()</title>
</head>
<body>
<script src="https://cdn.jsdelivr.net/gh/JerryWiltz/nP@latest/dist/nP.js"></script>
<script>
nP.lineChart();
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment